diff options
author | Tim Angus <tim@ngus.net> | 2005-12-10 20:19:52 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2005-12-10 20:19:52 +0000 |
commit | d28c9b3a4178a8d653dc479d385f60969c241bdb (patch) | |
tree | f8d124965c2c2543c43f4438a9ce3c91580dfb57 /src/server/sv_ccmds.c | |
parent | bf23ecf17f432cf8e47302ef7464612c17be9bbe (diff) |
* s/Quake III Arena source code/Tremulous/
* De-quaked various bits and pieces
* Integrated Tremulous into the ioq3 source
* Relicensed Tremulous to be GPL
* It compiles!!!!!!!!11111111!!!!1
Diffstat (limited to 'src/server/sv_ccmds.c')
-rw-r--r-- | src/server/sv_ccmds.c | 35 |
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)); |