Fix menu bug

This commit is contained in:
Miloslav Ciz 2025-05-01 19:12:28 +02:00
parent 4551b50904
commit a9c8bd1c4b
3 changed files with 17 additions and 18 deletions

View file

@ -416,10 +416,6 @@ void _LCR_pixelFunc3D(S3L_PixelInfo *pixel)
for (int i = 0; i < 3; ++i)
v[i] = LCR_renderer.mapVerts + 3 * t[i];
const uint8_t *triData = LCR_renderer.mapTriangleData +
LCR_renderer.chunkStarts[LCR_renderer.loadedChunks[pixel->modelIndex]];
@ -2017,7 +2013,7 @@ void LCR_rendererDrawMenu(const char *tabName,const char **items,
i = stripHeight + (stripHeight2 - LCR_rendererComputeTextHeight(3)) / 2;
for (int j = 0; j < itemCount + 1 + (scroll != 0) ; ++j)
for (int j = 0; j < itemCount + 1 + (scroll != 0); ++j)
{
const char *s = j ? (j <= itemCount ? items[j - 1] : "...") : tabName;
const char *s2 = s;