]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into Mario/client_entnum
authorMario <mario.mario@y7mail.com>
Sun, 25 Sep 2022 02:03:27 +0000 (12:03 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 25 Sep 2022 02:03:27 +0000 (12:03 +1000)
1  2 
qcsrc/lib/csqcmodel/cl_model.qc
qcsrc/lib/csqcmodel/cl_player.qc

Simple merge
index 6dc14918f13779a4ced8c357fe6ea5bc1d0ffb29,5521feae190c5a894a6bc5007ef36b362bb55cf6..13f8374a0d3e2995eaa174eb403fc3c390de880d
@@@ -654,10 -679,11 +679,11 @@@ bool CSQCPlayer_PreUpdate(entity this
  
  bool CSQCPlayer_PostUpdate(entity this)
  {
 -      if (this.entnum != player_localnum + 1) return false;
 +      if (!(this.isplayermodel & ISPLAYER_LOCAL)) return false;
        csqcplayer = this;
        csqcplayer_status = CSQCPLAYERSTATUS_FROMSERVER;
-       cvar_settemp("cl_movement_replay", "0");
+       if (cvar("cl_movement_replay"))
+               cvar_settemp("cl_movement_replay", "0");
        this.entremove = CSQCPlayer_Remove;
        return true;
  }