Address some TODOs

This commit is contained in:
Miloslav Ciz 2025-04-13 15:48:16 +02:00
parent e32e83a826
commit 27d2e89133
4 changed files with 20 additions and 14 deletions

View file

@ -1384,8 +1384,10 @@ uint32_t LCR_racingStep(unsigned int input)
/* When steering, also slightly spin the car. This helps fix the car
getting "stuck" by its side to a wall when too close, becoming unable
to unstick itself. */
TPE_bodySpin(&LCR_racing.carBody,_LCR_TPE_vec3DividePlain(carUp,
steering == ((input & LCR_RACING_INPUT_LEFT) != 0) ? 100 : -100));
(steering == (((input & LCR_RACING_INPUT_LEFT) != 0)) ==
((input & (LCR_RACING_INPUT_FORW)) != 0)) ? 100 : -100));
}
}