mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix sliptide death-spirals on input boundary cross
This commit is contained in:
parent
d870bf0416
commit
e3ea9df683
1 changed files with 3 additions and 3 deletions
|
|
@ -2249,13 +2249,13 @@ static void P_UpdatePlayerAngle(player_t *player)
|
|||
// Don't change handling direction if someone's inputs are sliptiding, you'll break the sliptide!
|
||||
if (player->cmd.turning > 0)
|
||||
{
|
||||
steeringRight = max(steeringRight, max(steeringLeft, 1));
|
||||
steeringLeft = max(steeringLeft, 1);
|
||||
steeringRight = max(steeringRight, steeringLeft);
|
||||
}
|
||||
else
|
||||
{
|
||||
steeringLeft = min(steeringLeft, min(steeringRight, -1));
|
||||
steeringRight = min(steeringLeft, -1);
|
||||
steeringRight = min(steeringRight, -1);
|
||||
steeringLeft = min(steeringLeft, steeringRight);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue