mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
Fixed PlayerEntered for non-travel enters
This commit is contained in:
parent
7f2d97d7ef
commit
5d8b3e8084
1 changed files with 3 additions and 0 deletions
|
@ -5426,6 +5426,9 @@ APlayerPawn *P_SpawnPlayer (FPlayerStart *mthing, int playernum, int flags)
|
|||
{
|
||||
if (state == PST_ENTER || (state == PST_LIVE && !savegamerestore))
|
||||
{
|
||||
// [ZZ] fire non-hub ENTER event
|
||||
// level.time is a hack to make sure that we don't call it on dummy player initialization during hub return.
|
||||
if (!level.time) E_PlayerEntered(p - players, false);
|
||||
FBehavior::StaticStartTypedScripts (SCRIPT_Enter, p->mo, true);
|
||||
}
|
||||
else if (state == PST_REBORN)
|
||||
|
|
Loading…
Reference in a new issue