mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 03:51:50 +00:00
Reset tumbleLastBounce so the final bounce always happens
This commit is contained in:
parent
9a2bdc090c
commit
33b6c320b2
1 changed files with 2 additions and 1 deletions
|
|
@ -2584,6 +2584,7 @@ static void K_HandleTumbleBounce(player_t *player)
|
|||
{
|
||||
// End tumble state
|
||||
player->tumbleBounces = 0;
|
||||
player->tumbleLastBounce = false; // Reset for next time
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
|
@ -2591,7 +2592,7 @@ static void K_HandleTumbleBounce(player_t *player)
|
|||
// One last bounce at the minimum height, to reset the animation
|
||||
player->tumbleHeight = 10;
|
||||
player->tumbleLastBounce = true;
|
||||
player->mo->rollangle = 0; // p_user.c will sotp rotating the player automatically
|
||||
player->mo->rollangle = 0; // p_user.c will stop rotating the player automatically
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue