]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix vote timing out when none is called 492/head
authorMartin Taibr <taibr.martin@gmail.com>
Wed, 20 Sep 2017 17:57:43 +0000 (19:57 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Wed, 20 Sep 2017 17:57:43 +0000 (19:57 +0200)
qcsrc/server/client.qc

index 517e0c98f8e0bcab065ec5f91655a352efeff079..0aa16c3baf299f3d30f8f5af0e1e4a649d1d21a7 100644 (file)
@@ -224,14 +224,14 @@ void PutObserverInServer(entity this)
        {
                if(this.health >= 1)
                {
-               // despawn effect
+                       // despawn effect
                        Send_Effect(EFFECT_SPAWN_NEUTRAL, this.origin, '0 0 0', 1);
                }
 
                // was a player, recount votes and ready status
                if(IS_REAL_CLIENT(this))
                {
-                       VoteCount(false);
+                       if (vote_called) { VoteCount(false); }
                        ReadyCount();
                }
     }