mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Execute LUAh_PlayerThink(player) at the end if the player has a valid mobj_t object
This commit is contained in:
parent
7efb33a38e
commit
2764c283d2
1 changed files with 9 additions and 5 deletions
10
src/p_user.c
10
src/p_user.c
|
|
@ -8580,13 +8580,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.
|
||||||
|
}
|
||||||
|
|
||||||
// Unset statis flags after moving.
|
// Unset statis flags after moving.
|
||||||
// In other words, if you manually set stasis via code,
|
// 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
|
K_KartPlayerThink(player, cmd); // SRB2kart
|
||||||
|
|
||||||
|
#ifdef HAVE_BLUA
|
||||||
|
LUAh_PlayerThink(player);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// Colormap verification
|
// Colormap verification
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue