Fix PlayerSpawn hook not being called if the player is respawned at a starpost

This commit is contained in:
Monster Iestyn 2017-06-20 16:18:51 +01:00
parent 7d28b63257
commit da2f5fe0a2

View file

@ -2288,6 +2288,9 @@ void G_SpawnPlayer(INT32 playernum, boolean starpost)
if (starpost) //Don't even bother with looking for a place to spawn. if (starpost) //Don't even bother with looking for a place to spawn.
{ {
P_MovePlayerToStarpost(playernum); P_MovePlayerToStarpost(playernum);
#ifdef HAVE_BLUA
LUAh_PlayerSpawn(&players[playernum]); // Lua hook for player spawning :)
#endif
return; return;
} }