From 3a924ae34b70e77e6118217a02fdd6d65dafbb0d Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 17 Sep 2016 12:42:56 +0200 Subject: [PATCH] Don't exec CSQCMODEL_AUTOUPDATE twice for spectators / observers --- qcsrc/server/client.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); } -- 2.39.2