mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Clean up failsafe queue condition
This commit is contained in:
parent
7ba7e2b076
commit
38c096a5cd
1 changed files with 3 additions and 2 deletions
|
|
@ -10792,9 +10792,10 @@ static void K_AirFailsafe(player_t *player)
|
||||||
|
|
||||||
UINT8 buttons = K_GetKartButtons(player);
|
UINT8 buttons = K_GetKartButtons(player);
|
||||||
|
|
||||||
if (((buttons & BT_ACCELERATE) && !(buttons & BT_BRAKE)) || K_GetForwardMove(player) != 0)
|
// Accel inputs queue air-failsafe for when they're released,
|
||||||
|
// as long as they're not part of a fastfall attempt.
|
||||||
|
if ((buttons & (BT_ACCELERATE|BT_BRAKE)) == BT_ACCELERATE || K_GetForwardMove(player) != 0)
|
||||||
{
|
{
|
||||||
// Queue up later
|
|
||||||
player->pflags |= PF_AIRFAILSAFE;
|
player->pflags |= PF_AIRFAILSAFE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue