From 5c68e66953a13593e1272795ec07c55b27050af8 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Wed, 17 Mar 2010 23:57:04 +0000 Subject: * No-votes were not being handled properly --- src/game/g_cmds.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/game') diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index e435c999..097fa836 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1294,8 +1294,10 @@ void Cmd_Vote_f( gentity_t *ent ) va( "print \"%s: vote cast\n\"", cmd ) ); trap_Argv( 1, vote, sizeof( vote ) ); - ent->client->pers.vote |= - ( tolower( vote[ 0 ] ) == 'y' || vote[ 0 ] == '1' ) << team; + if( vote[ 0 ] == 'y' ) + ent->client->pers.vote |= 1 << team; + else + ent->client->pers.vote &= ~( 1 << team ); G_Vote( ent, team, qtrue ); } -- cgit