mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +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;
|
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