From: Martin Taibr Date: Wed, 20 Sep 2017 17:57:43 +0000 (+0200) Subject: fix vote timing out when none is called X-Git-Tag: xonotic-v0.8.5~2463^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F492%2Fhead;p=xonotic%2Fxonotic-data.pk3dir.git fix vote timing out when none is called --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 517e0c98f..0aa16c3ba 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -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(); } }