mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
WIP: don't oversteer when crossing 0 boundary
This commit is contained in:
parent
44b642ffa3
commit
94cf9fc47b
1 changed files with 2 additions and 2 deletions
|
|
@ -8859,9 +8859,9 @@ INT16 K_UpdateSteeringValue(INT16 inputSteering, INT16 destSteering)
|
|||
INT16 outputSteering = inputSteering;
|
||||
|
||||
|
||||
if ((inputSteering > 0 && destSteering < inputSteering) || (inputSteering < 0 && destSteering > inputSteering))
|
||||
if ((inputSteering > 0 && destSteering < 0) || (inputSteering < 0 && destSteering > 0))
|
||||
{
|
||||
amount = KART_FULLTURN;
|
||||
amount = max(min(KART_FULLTURN, abs(inputSteering)), amount);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue