summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:32:16 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:03 +0000
commit55f9653842686fb1c56e168e1fe183982138f56f (patch)
tree07f8c30957d6b77c47405977405cfabeb2ddc4ed /src/game
parent304d4258d3a49488f570b8ad71931faa7e5d40ba (diff)
* Fix alienWin and humanWin commands to destroy the *other* team's base
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_svcmds.c12
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 )