diff options
author | /dev/humancontroller <devhc@example.com> | 2015-06-14 15:22:09 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:16 +0100 |
commit | fd05e89083603366d816445350b632ae60bc4387 (patch) | |
tree | 2b4bb156584235b025ca653987762056d28b771d /src/game/g_svcmds.c | |
parent | 189239bc44323954c70fa9cd61d955fc3345673d (diff) |
do not "exit the level" multiple times when using admin/console commands
Diffstat (limited to 'src/game/g_svcmds.c')
-rw-r--r-- | src/game/g_svcmds.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c index b5eeda7b..eaeea0c7 100644 --- a/src/game/g_svcmds.c +++ b/src/game/g_svcmds.c @@ -330,6 +330,8 @@ static void Svcmd_TeamWin_f( void ) static void Svcmd_Evacuation_f( void ) { + if( level.exited ) + return; trap_SendServerCommand( -1, "print \"Evacuation ordered\n\"" ); level.lastWin = TEAM_NONE; trap_SetConfigstring( CS_WINNER, "Evacuation" ); |