Fix vote Y/1 and teamvote Y/1

This commit is contained in:
Ensiform 2013-03-03 21:53:14 -06:00 committed by Zack Middleton
parent fe0a65e52e
commit e7753f9acf

View file

@ -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 {