From: Mario Date: Fri, 1 Dec 2017 14:09:17 +0000 (+1000) Subject: Always link edict for clients (matches engine physics) X-Git-Tag: xonotic-v0.8.5~2417 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bbed0d928b6e8b3265a4a6322d5d368b83d89701;p=xonotic%2Fxonotic-data.pk3dir.git Always link edict for clients (matches engine physics) --- diff --git a/qcsrc/common/physics/movetypes/movetypes.qc b/qcsrc/common/physics/movetypes/movetypes.qc index 995c65b4d..3fe280858 100644 --- a/qcsrc/common/physics/movetypes/movetypes.qc +++ b/qcsrc/common/physics/movetypes/movetypes.qc @@ -544,7 +544,6 @@ void _Movetype_Physics_ClientFrame(entity this, float movedt) _Movetype_CheckWater(this); this.origin = this.origin + movedt * this.velocity; this.angles = this.angles + movedt * this.avelocity; - _Movetype_LinkEdict(this, false); break; case MOVETYPE_STEP: _Movetype_Physics_Step(this, movedt); @@ -563,6 +562,12 @@ void _Movetype_Physics_ClientFrame(entity this, float movedt) case MOVETYPE_PHYSICS: break; } + + //_Movetype_CheckVelocity(this); + + _Movetype_LinkEdict(this, true); + + //_Movetype_CheckVelocity(this); } void Movetype_Physics_NoMatchTicrate(entity this, float movedt, bool isclient) // to be run every move frame