]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure a vote is actually running before trying to count it when a client leaves
authorMario <mario@smbclan.net>
Sat, 5 Mar 2016 00:21:38 +0000 (10:21 +1000)
committerMario <mario@smbclan.net>
Sat, 5 Mar 2016 00:21:38 +0000 (10:21 +1000)
qcsrc/server/cl_client.qc

index 3e588a01a84238b707136ce69adc8a5dd154268b..de2603437e253f69e2c2322706a55ba846f8c92f 100644 (file)
@@ -1244,6 +1244,7 @@ void ClientDisconnect ()
 
        self.playerid = 0;
        ReadyCount();
+       if(vote_called)
        if(IS_REAL_CLIENT(self))
                VoteCount(false);