Execute LUAh_PlayerThink(player) at the end if the player has a valid mobj_t object

This commit is contained in:
Zachary McAlpin 2019-12-28 17:40:47 -06:00 committed by James R
parent 5921d17cc0
commit a9e851bcf5

View file

@ -8580,13 +8580,13 @@ void P_PlayerThink(player_t *player)
P_MovePlayer(player);
}
#ifdef HAVE_BLUA
LUAh_PlayerThink(player);
#endif
if (!player->mo)
{
#ifdef HAVE_BLUA
LUAh_PlayerThink(player);
#endif
return; // P_MovePlayer removed player->mo.
}
// Unset statis flags after moving.
// In other words, if you manually set stasis via code,
@ -8782,6 +8782,10 @@ void P_PlayerThink(player_t *player)
K_KartPlayerThink(player, cmd); // SRB2kart
#ifdef HAVE_BLUA
LUAh_PlayerThink(player);
#endif
/*
// Colormap verification
{