Commit a9e851bc authored by ChaoLoveIceMDBoy's avatar ChaoLoveIceMDBoy Committed by James R.
Browse files

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

parent 5921d17c
......@@ -8580,13 +8580,13 @@ void P_PlayerThink(player_t *player)
P_MovePlayer(player);
}
if (!player->mo)
{
#ifdef HAVE_BLUA
LUAh_PlayerThink(player);
#endif
if (!player->mo)
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
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment