mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 02:42:20 +00:00
move P_MapEnd call in P_LoadLevel further down, so that the P_MapStart/End pair also encloses cached actions and the MapLoad Lua hook
This commit is contained in:
parent
75938e2dfa
commit
07801a2a18
1 changed files with 3 additions and 3 deletions
|
@ -4223,7 +4223,7 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
|
|||
|
||||
P_ResetWaypoints();
|
||||
|
||||
P_MapStart();
|
||||
P_MapStart(); // tmthing can be used starting from this point
|
||||
|
||||
if (!P_LoadMapFromFile())
|
||||
return false;
|
||||
|
@ -4276,8 +4276,6 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
|
|||
// clear special respawning que
|
||||
iquehead = iquetail = 0;
|
||||
|
||||
P_MapEnd();
|
||||
|
||||
// Remove the loading shit from the screen
|
||||
if (rendermode != render_none && !(titlemapinaction || reloadinggamestate))
|
||||
F_WipeColorFill(levelfadecol);
|
||||
|
@ -4323,6 +4321,8 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
|
|||
LUAh_MapLoad();
|
||||
}
|
||||
|
||||
P_MapEnd(); // tmthing is no longer needed from this point onwards
|
||||
|
||||
// No render mode or reloading gamestate, stop here.
|
||||
if (rendermode == render_none || reloadinggamestate)
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue