mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-30 19:52:43 +00:00
Do something useful lmao
This commit is contained in:
parent
9a23bde435
commit
14c115fa36
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue