From dae4a48574ee0c45349093294ae8a358d90cd827 Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Thu, 2 Feb 2017 21:52:09 +0200 Subject: [PATCH] G_FinishTravel: only call RETURN/REOPEN on actual hub return as documented, not on every snapshot/savegame load --- src/g_level.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/g_level.cpp b/src/g_level.cpp index fa6e20ab5..ae00a80fa 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -1356,7 +1356,8 @@ void G_FinishTravel () } // [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 FBehavior::StaticStartTypedScripts(SCRIPT_Reopen, NULL, false);