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