mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix vote Y/1 and teamvote Y/1
This commit is contained in:
parent
fe0a65e52e
commit
e7753f9acf
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue