1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

Fix glass palettes

This commit is contained in:
Trevor Finney
2023-02-21 07:39:38 -05:00
parent abac9cc4a9
commit d2dd60ced8

View File

@@ -951,7 +951,7 @@ DrawPixelInfo DrawPixelInfo::Crop(const ScreenCoordsXY& pos, const ScreenSize& s
FilterPaletteID GetGlassPaletteId(colour_t c)
{
return GlassPaletteIds[c];
return (c > COLOUR_NUM_ORIGINAL) ? GlassPaletteIds[c - COLOUR_ID_G2_OFFSET] : GlassPaletteIds[c];
}
void UpdatePalette(const uint8_t* colours, int32_t start_index, int32_t num_colours)