REOPEN scripts should not be called per player pawn

This commit is contained in:
ZZYZX 2017-02-02 20:27:57 +02:00
parent 7fa50c22e5
commit 19d2f6a4db

View file

@ -1350,12 +1350,15 @@ void G_FinishTravel ()
if (level.FromSnapshot)
{
FBehavior::StaticStartTypedScripts (SCRIPT_Return, pawn, true);
// [Nash] run REOPEN scripts upon map re-entry
FBehavior::StaticStartTypedScripts(SCRIPT_Reopen, NULL, false);
}
}
if (level.FromSnapshot)
{
// [Nash] run REOPEN scripts upon map re-entry
FBehavior::StaticStartTypedScripts(SCRIPT_Reopen, NULL, false);
}
bglobal.FinishTravel ();
// make sure that, after travelling has completed, no travelling thinkers are left.