From: Mario Date: Fri, 17 Jun 2016 12:57:35 +0000 (+1000) Subject: Don't use client TICRATE for noclip prediction (fixes choppy prediction) X-Git-Tag: xonotic-v0.8.2~800 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=85374d5d4632a9a92fc16fbb2b9f598b50d28b34;p=xonotic%2Fxonotic-data.pk3dir.git Don't use client TICRATE for noclip prediction (fixes choppy prediction) --- diff --git a/qcsrc/common/physics/movetypes/movetypes.qc b/qcsrc/common/physics/movetypes/movetypes.qc index eee217200..a68e3e3a0 100644 --- a/qcsrc/common/physics/movetypes/movetypes.qc +++ b/qcsrc/common/physics/movetypes/movetypes.qc @@ -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: