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
parent 5a9b80b5d5
commit 745cced08e

View file

@ -11700,12 +11700,13 @@ void P_PlayerThink(player_t *player)
P_MovePlayer(player); P_MovePlayer(player);
} }
if (!player->mo)
{
#ifdef HAVE_BLUA #ifdef HAVE_BLUA
LUAh_PlayerThink(player); LUAh_PlayerThink(player);
#endif #endif
if (!player->mo)
return; // P_MovePlayer removed player->mo. return; // P_MovePlayer removed player->mo.
}
// deez New User eXperiences. // deez New User eXperiences.
{ {
@ -12137,6 +12138,11 @@ void P_PlayerThink(player_t *player)
dashmode = 0; dashmode = 0;
} }
#undef dashmode #undef dashmode
#ifdef HAVE_BLUA
LUAh_PlayerThink(player);
#endif
/* /*
// Colormap verification // Colormap verification
{ {