]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't exec CSQCMODEL_AUTOUPDATE twice for spectators / observers
authorterencehill <piuntn@gmail.com>
Sat, 17 Sep 2016 10:42:56 +0000 (12:42 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 17 Sep 2016 10:42:56 +0000 (12:42 +0200)
qcsrc/server/client.qc

index 2963abf8719ae6bc7258d1a78b1c7b5f5fb13196..ee77312d2153b6c8ea6414ac7f975ecad4841f8b 100644 (file)
@@ -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);
        }