From e7753f9acff0be7ae55c96d495d7817c7095e158 Mon Sep 17 00:00:00 2001 From: Ensiform Date: Sun, 3 Mar 2013 21:53:14 -0600 Subject: [PATCH] Fix vote Y/1 and teamvote Y/1 --- code/game/g_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/g_cmds.c b/code/game/g_cmds.c index 72821f6e..aaa1f8f6 100644 --- a/code/game/g_cmds.c +++ b/code/game/g_cmds.c @@ -1391,7 +1391,7 @@ void Cmd_Vote_f( gentity_t *ent ) { trap_Argv( 1, msg, sizeof( msg ) ); - if ( msg[0] == 'y' || msg[1] == 'Y' || msg[1] == '1' ) { + if ( tolower( msg[0] ) == 'y' || msg[0] == '1' ) { level.voteYes++; trap_SetConfigstring( CS_VOTE_YES, va("%i", level.voteYes ) ); } else { @@ -1566,7 +1566,7 @@ void Cmd_TeamVote_f( gentity_t *ent ) { trap_Argv( 1, msg, sizeof( msg ) ); - if ( msg[0] == 'y' || msg[1] == 'Y' || msg[1] == '1' ) { + if ( tolower( msg[0] ) == 'y' || msg[0] == '1' ) { level.teamVoteYes[cs_offset]++; trap_SetConfigstring( CS_TEAMVOTE_YES + cs_offset, va("%i", level.teamVoteYes[cs_offset] ) ); } else {