mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix edge cases in turn solver sliptide preservation
This commit is contained in:
parent
4eb4f896ac
commit
2e57dd6212
1 changed files with 3 additions and 3 deletions
|
|
@ -2371,15 +2371,15 @@ static void P_UpdatePlayerAngle(player_t *player)
|
||||||
// Don't force another turning tic, just give them the desired angle!
|
// Don't force another turning tic, just give them the desired angle!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!(player->cmd.buttons & BT_DRIFT) && (abs(player->drift) == 1) && ((player->cmd.turning > 0) == (player->drift > 0)) && player->handleboost > SLIPTIDEHANDLING)
|
if (!(player->cmd.buttons & BT_DRIFT) && (abs(player->drift) == 1) && ((player->cmd.turning > 0) == (player->drift > 0)) && player->handleboost >= SLIPTIDEHANDLING)
|
||||||
{
|
{
|
||||||
// This drift release is eligible to start a sliptide. Don't do lag-compensation countersteer behavior that could destroy it!
|
// This drift release is eligible to start a sliptide. Don't do lag-compensation countersteer behavior that could destroy it!
|
||||||
if (player->cmd.turning >= 0)
|
if (player->cmd.turning > 0)
|
||||||
{
|
{
|
||||||
steeringLeft = max(steeringLeft, 1);
|
steeringLeft = max(steeringLeft, 1);
|
||||||
steeringRight = max(steeringRight, steeringLeft);
|
steeringRight = max(steeringRight, steeringLeft);
|
||||||
}
|
}
|
||||||
else if (player->cmd.turning <= 0)
|
else if (player->cmd.turning < 0)
|
||||||
{
|
{
|
||||||
steeringRight = min(steeringRight, -1);
|
steeringRight = min(steeringRight, -1);
|
||||||
steeringLeft = min(steeringLeft, steeringRight);
|
steeringLeft = min(steeringLeft, steeringRight);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue