]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't recount votes if the client leaving is a bot
authorMario <mario@smbclan.net>
Wed, 2 Mar 2016 13:01:28 +0000 (23:01 +1000)
committerMario <mario@smbclan.net>
Wed, 2 Mar 2016 13:01:28 +0000 (23:01 +1000)
qcsrc/server/cl_client.qc

index e683a4e2438e50289eb595f1dfd9995114608301..3e588a01a84238b707136ce69adc8a5dd154268b 100644 (file)
@@ -1244,7 +1244,8 @@ void ClientDisconnect ()
 
        self.playerid = 0;
        ReadyCount();
-       VoteCount(false);
+       if(IS_REAL_CLIENT(self))
+               VoteCount(false);
 
        // free cvars
        GetCvars(-1);