From: Mario Date: Wed, 2 Mar 2016 13:01:28 +0000 (+1000) Subject: Don't recount votes if the client leaving is a bot X-Git-Tag: xonotic-v0.8.2~1163 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bb054214555e3465194c9bdd7c0df57f59f1b531;p=xonotic%2Fxonotic-data.pk3dir.git Don't recount votes if the client leaving is a bot --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index e683a4e24..3e588a01a 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1244,7 +1244,8 @@ void ClientDisconnect () self.playerid = 0; ReadyCount(); - VoteCount(false); + if(IS_REAL_CLIENT(self)) + VoteCount(false); // free cvars GetCvars(-1);