Smooth replay finish

This commit is contained in:
Miloslav Ciz 2025-06-23 17:14:29 +02:00
parent 5a44fb515b
commit ab70d727b8
8 changed files with 36 additions and 12 deletions

4
game.h
View file

@ -1275,8 +1275,8 @@ void LCR_gameDraw3DView(void)
#endif
? LCR_GAME_UNIT -
((LCR_game.nextRacingTickTime - LCR_game.time) * LCR_GAME_UNIT)
/ LCR_RACING_TICK_MS_RT
: LCR_GAME_UNIT / 2;
/ LCR_RACING_TICK_MS_RT // 32: magic constant
: _LCR_min(LCR_GAME_UNIT,32 * (LCR_game.time - LCR_game.stateStartTime));
LCR_racingGetCarTransform(carTransform,carTransform + 3,
physicsInterpolationParam);