summaryrefslogtreecommitdiff
path: root/src/game/g_local.h
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-24 09:53:15 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-24 13:42:52 +0200
commitda338b5f05fd0154b3d1aba9ae45b944bfe865f2 (patch)
tree78a51e86b5b9ebcb3648209d987ae249b086e3e1 /src/game/g_local.h
parentc17c9c0f4d000a6765653a1168453a830e403117 (diff)
Discard players' votes when they leave.
Diffstat (limited to 'src/game/g_local.h')
-rw-r--r--src/game/g_local.h2
1 files changed, 2 insertions, 0 deletions
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