diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_svcmds.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c index 90fd717d..7f63ddd2 100644 --- a/src/game/g_svcmds.c +++ b/src/game/g_svcmds.c @@ -304,9 +304,19 @@ static void Svcmd_AdmitDefeat_f( void ) static void Svcmd_TeamWin_f( void ) { + // this is largely made redundant by admitdefeat <team> char cmd[ 6 ]; trap_Argv( 0, cmd, sizeof( cmd ) ); - G_BaseSelfDestruct( G_TeamFromString( cmd ) ); + + switch( G_TeamFromString( cmd ) ) + { + case TEAM_ALIENS: + G_BaseSelfDestruct( TEAM_HUMANS ); + break; + case TEAM_HUMANS: + G_BaseSelfDestruct( TEAM_ALIENS ); + break; + } } static void Svcmd_Evacuation_f( void ) |