Do something useful lmao

This commit is contained in:
Antonio Martinez 2025-05-22 13:57:08 -04:00
parent 9a23bde435
commit 14c115fa36

View file

@ -4238,7 +4238,6 @@ void P_PlayerThink(player_t *player)
// Track airtime
if (P_IsObjectOnGround(player->mo)
&& !(player->pflags & PF_FAULT)
&& !P_PlayerInPain(player)) // This isn't airtime, but it's control loss all the same.
{
player->lastairtime = player->airtime;
@ -4249,6 +4248,12 @@ void P_PlayerThink(player_t *player)
player->airtime++;
}
if ((player->pflags & PF_FAULT) || (player->pflags & PF_VOID))
{
player->lastairtime = 0;
player->airtime = 0;
}
cmd = &player->cmd;
// SRB2kart