Fix replay bug

This commit is contained in:
Miloslav Ciz 2025-03-31 20:10:15 +02:00
parent 1454ae446e
commit 50c03623a4
3 changed files with 22 additions and 18 deletions

4
game.h
View file

@ -574,8 +574,8 @@ void _LCR_gamePrepareGhost(void)
while (1)
{
if (LCR_racing.tick % (LCR_SETTING_GHOST_STEP << LCR_game.ghost.stretch)
== 0 || LCR_replayHasFinished())
if ((LCR_racing.tick % (LCR_SETTING_GHOST_STEP << LCR_game.ghost.stretch)
== 0) || LCR_replayHasFinished())
{
LCR_racingGetCarTransform(carTransform,carTransform + 3,
LCR_GAME_UNIT / 2);