- fixed: The respawn event handler was not called for a regular in-game respawn, only for a cheat resurrection.

This commit is contained in:
Christoph Oelckers 2017-03-03 18:53:11 +01:00
parent 6055f136d8
commit 7736e42740

View file

@ -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);
} }
} }