mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-16 09:42:57 +00:00
Execute LUAh_PlayerThink(player) at the end if the player has a valid mobj_t object
This commit is contained in:
parent
5a9b80b5d5
commit
745cced08e
1 changed files with 10 additions and 4 deletions
10
src/p_user.c
10
src/p_user.c
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue