From da338b5f05fd0154b3d1aba9ae45b944bfe865f2 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 24 Apr 2018 09:53:15 +0200 Subject: Discard players' votes when they leave. --- src/game/g_local.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game/g_local.h') diff --git a/src/game/g_local.h b/src/game/g_local.h index 489b52a..82ad397 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -704,6 +704,7 @@ typedef struct int voteYes; int voteNo; int numVotingClients; // set by CalculateRanks + int votedHow[MAX_CLIENTS]; // 0 is "hasn't voted", 1 is "voted yes", -1 is voted "no" // team voting state char teamVoteString[ 2 ][ MAX_STRING_CHARS ]; @@ -713,6 +714,7 @@ typedef struct int teamVoteYes[ 2 ]; int teamVoteNo[ 2 ]; int numteamVotingClients[ 2 ]; // set by CalculateRanks + int teamVotedHow[ 2 ][ MAX_CLIENTS ]; // spawn variables qboolean spawning; // the G_Spawn*() functions are valid -- cgit