From 080708d05d84f3aa805c14a190d316690ec5435e Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 19 Mar 2024 22:36:38 +0100 Subject: [PATCH] revert that change for flashpals --- src/st_stuff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/st_stuff.c b/src/st_stuff.c index 06ce08c5e..5eb005662 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -249,6 +249,8 @@ void ST_doPaletteStuff(void) palette = 0; // No flashpals here in OpenGL #endif + palette = min(max(palette, 0), 13); + if (palette != st_palette) { st_palette = palette;