mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-04 20:56:14 +00:00
Execute LUAh_PlayerThink(player) at the end if the player has a valid mobj_t object
This commit is contained in:
parent
930cda3469
commit
a91f008d1c
1 changed files with 10 additions and 4 deletions
14
src/p_user.c
14
src/p_user.c
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue