mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-17 03:53:07 +01:00
Fix glass palettes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user