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.
This commit is contained in:
Sally Coolatta 2022-03-06 22:52:20 -05:00
parent d8f6ad217c
commit 3b15d9b4fe

View file

@ -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);