mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Fix applying palette colours; SPRITE_ID_PALETTE_COLOUR_3 to _2
This commit is contained in:
@@ -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)
|
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));
|
scenery_small_get_secondary_colour(mapElement));
|
||||||
}
|
}
|
||||||
else
|
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_PRIMARY_COLOUR)
|
||||||
{
|
{
|
||||||
if (entry->small_scenery.flags & SMALL_SCENERY_FLAG_HAS_SECONDARY_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));
|
scenery_small_get_secondary_colour(mapElement));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user