mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
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:
parent
d8f6ad217c
commit
3b15d9b4fe
1 changed files with 2 additions and 2 deletions
|
@ -7156,8 +7156,8 @@ static void M_LevelSelectWarp(INT32 choice)
|
||||||
{
|
{
|
||||||
M_ClearMenus(true);
|
M_ClearMenus(true);
|
||||||
|
|
||||||
D_MapChange(startmap, gametype, false, false, 1, false, fromlevelselect);
|
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");
|
COM_BufAddText("dummyconsvar 1\n"); // G_DeferedInitNew doesn't do this
|
||||||
|
|
||||||
if (levelselect.rows)
|
if (levelselect.rows)
|
||||||
Z_Free(levelselect.rows);
|
Z_Free(levelselect.rows);
|
||||||
|
|
Loading…
Reference in a new issue