From a4ddb9802e76d6fdce084111a9c1b1cc56f35f37 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sat, 11 Apr 2015 23:55:01 +0200 Subject: Remove draw votes. --- src/game/g_cmds.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/game') diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index f3cada7..cf9b3e4 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1323,27 +1323,6 @@ void Cmd_CallVote_f( gentity_t *ent ) "Set the ^1next^5 map to '%s'", arg ); } } - else if( !Q_stricmp( vote, "draw" ) ) - { - if( !reason[ 0 ] && !G_admin_permission( ent, ADMF_UNACCOUNTABLE ) ) - { - trap_SendServerCommand( ent-g_entities, - va( "print \"%s: You must provide a reason\n\"", cmd ) ); - return; - } - - if( (( level.time - level.startTime ) <= 300 * 1000 ) - && ( level.numPlayingClients > 0 && level.numConnectedClients > 1 ) ) - { - trap_SendServerCommand( ent-g_entities, "print \"You cannot call for a draw before 5 minutes\n\"" ); - return; - } - - - strcpy( level.voteString[ team ], "evacuation" ); - strcpy( level.voteDisplayString[ team ], "End match in a draw" ); - level.voteDelay[ team ] = 3000; - } else if( !Q_stricmp( vote, "sudden_death" ) ) { if(!g_suddenDeathVotePercent.integer) @@ -1402,7 +1381,7 @@ void Cmd_CallVote_f( gentity_t *ent ) { trap_SendServerCommand( ent-g_entities, "print \"Invalid vote string\n\"" ); trap_SendServerCommand( ent-g_entities, "print \"Valid vote commands are: " - "map, nextmap, map_restart, draw, sudden_death, armageddon, kick, poll, mute and unmute\n" ); + "map, nextmap, map_restart, sudden_death, armageddon, kick, poll, mute and unmute\n" ); return; } } -- cgit