Skip to content

Commit

Permalink
spearmint: Always keep bots, even with 'devmap'
Browse files Browse the repository at this point in the history
  • Loading branch information
ToKu authored Jan 10, 2022
1 parent b46d8cf commit 1ce702f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/server/sv_ccmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,16 @@ static void SV_Map_f( void ) {
cmd = Cmd_Argv(0);
if ( !Q_stricmp( cmd, "devmap" ) ) {
cheat = qtrue;
killBots = qtrue;
} else {
cheat = qfalse;
killBots = Com_GameIsSinglePlayer();
}

// save the map name here cause on a map restart we reload the q3config.cfg
// and thus nuke the arguments of the map command
Q_strncpyz(mapname, map, sizeof(mapname));

killBots = Com_GameIsSinglePlayer();

// start up the map
SV_SpawnServer( mapname, killBots );

Expand Down

0 comments on commit 1ce702f

Please sign in to comment.