summaryrefslogtreecommitdiff
path: root/src/server/sv_ccmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/sv_ccmds.c')
-rw-r--r--src/server/sv_ccmds.c35
1 files changed, 11 insertions, 24 deletions
diff --git a/src/server/sv_ccmds.c b/src/server/sv_ccmds.c
index b4fafc6f..9128249f 100644
--- a/src/server/sv_ccmds.c
+++ b/src/server/sv_ccmds.c
@@ -1,21 +1,22 @@
/*
===========================================================================
Copyright (C) 1999-2005 Id Software, Inc.
+Copyright (C) 2000-2006 Tim Angus
-This file is part of Quake III Arena source code.
+This file is part of Tremulous.
-Quake III Arena source code is free software; you can redistribute it
+Tremulous is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
-Quake III Arena source code is distributed in the hope that it will be
+Tremulous is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with Quake III Arena source code; if not, write to the Free Software
+along with Tremulous; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
@@ -157,29 +158,15 @@ static void SV_Map_f( void ) {
Cvar_Get ("g_gametype", "0", CVAR_SERVERINFO | CVAR_USERINFO | CVAR_LATCH );
cmd = Cmd_Argv(0);
- if( Q_stricmpn( cmd, "sp", 2 ) == 0 ) {
- Cvar_SetValue( "g_gametype", GT_SINGLE_PLAYER );
- Cvar_SetValue( "g_doWarmup", 0 );
- // may not set sv_maxclients directly, always set latched
- Cvar_SetLatched( "sv_maxclients", "8" );
- cmd += 2;
- cheat = qfalse;
+ if ( !Q_stricmp( cmd, "devmap" ) || !Q_stricmp( cmd, "spdevmap" ) ) {
+ cheat = qtrue;
killBots = qtrue;
- }
- else {
- if ( !Q_stricmp( cmd, "devmap" ) || !Q_stricmp( cmd, "spdevmap" ) ) {
- cheat = qtrue;
- killBots = qtrue;
- } else {
- cheat = qfalse;
- killBots = qfalse;
- }
- if( sv_gametype->integer == GT_SINGLE_PLAYER ) {
- Cvar_SetValue( "g_gametype", GT_FFA );
- }
+ } else {
+ cheat = qfalse;
+ killBots = qfalse;
}
- // save the map name here cause on a map restart we reload the q3config.cfg
+ // save the map name here cause on a map restart we reload the autogen.cfg
// and thus nuke the arguments of the map command
Q_strncpyz(mapname, map, sizeof(mapname));