mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't allow tricks until you go back to neutral
This commit is contained in:
parent
b7a8c1f128
commit
180a49dfc7
1 changed files with 6 additions and 0 deletions
|
|
@ -7317,6 +7317,12 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
|||
if (player->trickdelay > 0)
|
||||
{
|
||||
player->trickdelay--;
|
||||
|
||||
if ((player->kartstuff[k_throwdir] != 0 || cmd->driftturn != 0) && player->trickdelay <= 0)
|
||||
{
|
||||
// Don't allow a trick until you go back to neutral
|
||||
player->trickdelay = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue