G_FinishTravel: only call RETURN/REOPEN on actual hub return as documented, not on every snapshot/savegame load

This commit is contained in:
ZZYZX 2017-02-02 21:52:09 +02:00
parent 957a8cb117
commit dae4a48574
1 changed files with 2 additions and 1 deletions

View File

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