X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fecs%2Fsystems%2Fphysics.qc;fp=qcsrc%2Fecs%2Fsystems%2Fphysics.qc;h=cd59c516c991386d6f6d8e7ef6c78353b3921658;hb=da20c91cdf9b61e6519db605a14b1676a2448987;hp=b9eca8ca8e971859d2385633cad132de62ee1fd7;hpb=ffba9445f4b7f63c242b80e95d6b04aef9ebcf8d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/ecs/systems/physics.qc b/qcsrc/ecs/systems/physics.qc index b9eca8ca8..cd59c516c 100644 --- a/qcsrc/ecs/systems/physics.qc +++ b/qcsrc/ecs/systems/physics.qc @@ -33,7 +33,12 @@ void sys_phys_update(entity this, float dt) if (IS_SVQC) { if (this.move_movetype == MOVETYPE_NONE) { return; } // when we get here, disableclientprediction cannot be 2 - this.disableclientprediction = (this.move_qcphysics) ? -1 : 0; + if(this.move_movetype == MOVETYPE_FOLLOW) // not compatible with prediction + this.disableclientprediction = 1; + else if(this.move_qcphysics) + this.disableclientprediction = -1; + else + this.disableclientprediction = 0; } viewloc_PlayerPhysics(this);