From 086ab0ceaf2f5a800cc666cc8452a888c4ab3e2b Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Wed, 20 Sep 2017 19:57:43 +0200 Subject: [PATCH] fix vote timing out when none is called --- qcsrc/server/client.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } } -- 2.39.2