Rework drifting

This commit is contained in:
Miloslav Ciz 2025-04-16 22:31:56 +02:00
parent 74bd36c893
commit 51bc7ada30
3 changed files with 41 additions and 33 deletions

2
game.h
View file

@ -1562,7 +1562,7 @@ uint8_t LCR_gameStep(uint32_t time)
for (int i = 0; i < LCR_KEYS_TOTAL; ++i)
LCR_game.keyStates[i] = LCR_keyPressed(i) ?
(LCR_game.keyStates[i] < 255 ? LCR_game.keyStates[i] + 1 : 255) : 0;
if (LCR_game.state == LCR_GAME_STATE_LOADING)
{
LCR_rendererLoadMap();