mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- fixed: The respawn event handler was not called for a regular in-game respawn, only for a cheat resurrection.
This commit is contained in:
parent
6055f136d8
commit
7736e42740
1 changed files with 1 additions and 0 deletions
|
@ -5563,6 +5563,7 @@ APlayerPawn *P_SpawnPlayer (FPlayerStart *mthing, int playernum, int flags)
|
||||||
for (int ii=0; ii < BODYQUESIZE; ++ii)
|
for (int ii=0; ii < BODYQUESIZE; ++ii)
|
||||||
if (bodyque[ii] == p->mo)
|
if (bodyque[ii] == p->mo)
|
||||||
bodyque[ii] = oldactor;
|
bodyque[ii] = oldactor;
|
||||||
|
E_PlayerRespawned(int(p - players));
|
||||||
FBehavior::StaticStartTypedScripts (SCRIPT_Respawn, p->mo, true);
|
FBehavior::StaticStartTypedScripts (SCRIPT_Respawn, p->mo, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue