mirror of https://github.com/ZDoom/gzdoom-gles.git
G_FinishTravel: only call RETURN/REOPEN on actual hub return as documented, not on every snapshot/savegame load
This commit is contained in:
parent
957a8cb117
commit
dae4a48574
|
@ -1356,7 +1356,8 @@ void G_FinishTravel ()
|
||||||
}
|
}
|
||||||
|
|
||||||
// [ZZ] fire the reopen hook.
|
// [ZZ] fire the reopen hook.
|
||||||
if (level.FromSnapshot)
|
// if level is loaded from snapshot, and we don't have savegamerestore, this means we returned from a hub.
|
||||||
|
if (level.FromSnapshot && !savegamerestore)
|
||||||
{
|
{
|
||||||
// [Nash] run REOPEN scripts upon map re-entry
|
// [Nash] run REOPEN scripts upon map re-entry
|
||||||
FBehavior::StaticStartTypedScripts(SCRIPT_Reopen, NULL, false);
|
FBehavior::StaticStartTypedScripts(SCRIPT_Reopen, NULL, false);
|
||||||
|
|
Loading…
Reference in New Issue