Continue menu

This commit is contained in:
Miloslav Ciz 2025-01-04 19:51:33 +01:00
parent 44f748134f
commit 6bf3a950dc
4 changed files with 18 additions and 5 deletions

7
game.h
View file

@ -677,8 +677,11 @@ void LCR_gameHandleInput(void)
break;
}
if (tabSwitchedTo)
LCR_gameLoadResourceFileChunk(0,tabSwitchedTo == 1 ? 'M' : 'R');
if (tabSwitchedTo || scrolled != 0)
LCR_gameLoadResourceFileChunk(
tabSwitchedTo ? 0 : (LCR_game.resourceFile.firstItemIndex +
scrolled * LCR_RESOURCE_ITEM_CHUNK),
LCR_game.menuSelectedTab == 1 ? 'M' : 'R');
}
uint8_t LCR_gameStep(uint32_t time)