From 55f9653842686fb1c56e168e1fe183982138f56f Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 12:32:16 +0000 Subject: * Fix alienWin and humanWin commands to destroy the *other* team's base --- src/game/g_svcmds.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src') 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 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 ) -- cgit