mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-02-03 11:50:57 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue