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,11 +1350,14 @@ void G_FinishTravel ()
if (level.FromSnapshot) if (level.FromSnapshot)
{ {
FBehavior::StaticStartTypedScripts (SCRIPT_Return, pawn, true); FBehavior::StaticStartTypedScripts (SCRIPT_Return, pawn, true);
}
}
if (level.FromSnapshot)
{
// [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);
} }
}
bglobal.FinishTravel (); bglobal.FinishTravel ();