1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix applying palette colours; SPRITE_ID_PALETTE_COLOUR_3 to _2

This commit is contained in:
rwjuk
2017-07-28 00:03:33 +01:00
committed by Michael Steenbeek
parent 222782b228
commit 315ee6b3b5

View File

@@ -121,7 +121,7 @@ void scenery_paint(uint8 direction, sint32 height, rct_map_element* mapElement)
{
if (entry->small_scenery.flags & SMALL_SCENERY_FLAG_HAS_SECONDARY_COLOUR)
{
baseImageid |= SPRITE_ID_PALETTE_COLOUR_3(scenery_small_get_primary_colour(mapElement),
baseImageid |= SPRITE_ID_PALETTE_COLOUR_2(scenery_small_get_primary_colour(mapElement),
scenery_small_get_secondary_colour(mapElement));
}
else
@@ -244,7 +244,7 @@ void scenery_paint(uint8 direction, sint32 height, rct_map_element* mapElement)
if (entry->small_scenery.flags & SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR)
{
if (entry->small_scenery.flags & SMALL_SCENERY_FLAG_HAS_SECONDARY_COLOUR) {
image_id |= SPRITE_ID_PALETTE_COLOUR_3(scenery_small_get_primary_colour(mapElement),
image_id |= SPRITE_ID_PALETTE_COLOUR_2(scenery_small_get_primary_colour(mapElement),
scenery_small_get_secondary_colour(mapElement));
}
else