mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
REOPEN scripts should not be called per player pawn
This commit is contained in:
parent
7fa50c22e5
commit
19d2f6a4db
1 changed files with 6 additions and 3 deletions
|
@ -1350,12 +1350,15 @@ void G_FinishTravel ()
|
||||||
if (level.FromSnapshot)
|
if (level.FromSnapshot)
|
||||||
{
|
{
|
||||||
FBehavior::StaticStartTypedScripts (SCRIPT_Return, pawn, true);
|
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 ();
|
bglobal.FinishTravel ();
|
||||||
|
|
||||||
// make sure that, after travelling has completed, no travelling thinkers are left.
|
// make sure that, after travelling has completed, no travelling thinkers are left.
|
||||||
|
|
Loading…
Reference in a new issue