From: terencehill Date: Sat, 17 Sep 2016 10:42:56 +0000 (+0200) Subject: Don't exec CSQCMODEL_AUTOUPDATE twice for spectators / observers X-Git-Tag: xonotic-v0.8.2~389^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3a924ae34b70e77e6118217a02fdd6d65dafbb0d;p=xonotic%2Fxonotic-data.pk3dir.git Don't exec CSQCMODEL_AUTOUPDATE twice for spectators / observers --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 2963abf87..ee77312d2 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2603,7 +2603,6 @@ void PlayerPostThink (entity this) this.solid = SOLID_NOT; this.takedamage = DAMAGE_NO; set_movetype(this, MOVETYPE_NONE); - CSQCMODEL_AUTOUPDATE(this); } if (IS_PLAYER(this)) { @@ -2611,7 +2610,11 @@ void PlayerPostThink (entity this) CheckRules_Player(this); UpdateChatBubble(this); if (this.impulse) ImpulseCommands(this); - if (gameover) return; + if (gameover) + { + CSQCMODEL_AUTOUPDATE(this); + return; + } GetPressedKeys(this); }