From: havoc Date: Thu, 28 Aug 2003 08:08:07 +0000 (+0000) Subject: fixed Prydon Gate behavior regarding the start map (which immediately changes level) X-Git-Tag: xonotic-v0.1.0preview~6410 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=8cdf09b2c1c4713344cdcb19f5e89f9426b8e7cf fixed Prydon Gate behavior regarding the start map (which immediately changes level) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3421 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/host_cmd.c b/host_cmd.c index fb4486f4..6ef5247e 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -286,6 +286,8 @@ void Host_Map_f (void) svs.serverflags = 0; // haven't completed an episode yet strcpy (sv_spawnmap, Cmd_Argv(1)); + if (host_initialized) + Host_PerformSpawnServerAndLoadGame(); } /* @@ -309,6 +311,8 @@ void Host_Changelevel_f (void) } SV_SaveSpawnparms (); strcpy (sv_spawnmap, Cmd_Argv(1)); + if (host_initialized) + Host_PerformSpawnServerAndLoadGame(); } /* @@ -326,6 +330,8 @@ void Host_Restart_f (void) if (cmd_source != src_command) return; strcpy (sv_spawnmap, sv.name); + if (host_initialized) + Host_PerformSpawnServerAndLoadGame(); } /* @@ -1650,7 +1656,7 @@ void Host_PerformSpawnServerAndLoadGame(void) sv_loadgame[0] = 0; sv_spawnmap[0] = 0; if (sv.active && cls.state == ca_disconnected) - Cmd_ExecuteString ("connect local", src_command); + Cbuf_AddText ("connect local"); } //=============================================================================