From 8cdf09b2c1c4713344cdcb19f5e89f9426b8e7cf Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 28 Aug 2003 08:08:07 +0000 Subject: [PATCH] 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 --- host_cmd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"); } //============================================================================= -- 2.39.2