diff options
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 5f574f20..e435c999 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1258,7 +1258,7 @@ void Cmd_CallVote_f( gentity_t *ent ) level.voteDisplayString[ team ] ); ent->client->pers.namelog->voteCount++; - ent->client->pers.vote[ team ] = qtrue; + ent->client->pers.vote |= 1 << team; G_Vote( ent, team, qtrue ); } @@ -1283,7 +1283,7 @@ void Cmd_Vote_f( gentity_t *ent ) return; } - if( ent->client->pers.voted[ team ] ) + if( ent->client->pers.voted & ( 1 << team ) ) { trap_SendServerCommand( ent-g_entities, va( "print \"%s: vote already cast\n\"", cmd ) ); @@ -1294,8 +1294,8 @@ void Cmd_Vote_f( gentity_t *ent ) va( "print \"%s: vote cast\n\"", cmd ) ); trap_Argv( 1, vote, sizeof( vote ) ); - ent->client->pers.vote[ team ] = - ( tolower( vote[ 0 ] ) == 'y' || vote[ 0 ] == '1' ); + ent->client->pers.vote |= + ( tolower( vote[ 0 ] ) == 'y' || vote[ 0 ] == '1' ) << team; G_Vote( ent, team, qtrue ); } |