]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't use client TICRATE for noclip prediction (fixes choppy prediction)
authorMario <mario@smbclan.net>
Fri, 17 Jun 2016 12:57:35 +0000 (22:57 +1000)
committerMario <mario@smbclan.net>
Fri, 17 Jun 2016 12:57:35 +0000 (22:57 +1000)
qcsrc/common/physics/movetypes/movetypes.qc

index eee217200f7da8baf8015dfae9c87d06516079fb..a68e3e3a08121a9493c041cb07d06f0702e0ed89 100644 (file)
@@ -620,8 +620,8 @@ void _Movetype_Physics_ClientFrame(entity this, float movedt)
                        break;
                case MOVETYPE_NOCLIP:
                        _Movetype_CheckWater(this);
-                       this.move_origin = this.move_origin + TICRATE * this.move_velocity;
-                       this.move_angles = this.move_angles + TICRATE * this.move_avelocity;
+                       this.move_origin = this.move_origin + movedt * this.move_velocity;
+                       this.move_angles = this.move_angles + movedt * this.move_avelocity;
                        _Movetype_LinkEdict(this, false);
                        break;
                case MOVETYPE_STEP: