From 3b15d9b4fe0c3f9b3a0fc1b6d3d947f39ac65e5a Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sun, 6 Mar 2022 22:52:20 -0500 Subject: [PATCH] Make the level select behave more identically to G_LoadGame Noticed some oddities with D_MapChange here with very rarely not changing player position when the map is loaded. --- src/m_menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index ef149cec5..c025ae286 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -7156,8 +7156,8 @@ static void M_LevelSelectWarp(INT32 choice) { M_ClearMenus(true); - D_MapChange(startmap, gametype, false, false, 1, false, fromlevelselect); - COM_BufAddText("dummyconsvar 1\n"); + G_DeferedInitNew(false, G_BuildMapName(startmap), cv_skin.value, false, fromlevelselect); // Not sure about using cv_skin here, but it seems fine in testing. + COM_BufAddText("dummyconsvar 1\n"); // G_DeferedInitNew doesn't do this if (levelselect.rows) Z_Free(levelselect.rows);