From 4fa10b049bb5208dd9bfda3d162a442798031dde Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Sat, 9 Jul 2016 08:05:25 +0100 Subject: [PATCH] Fix #3999. Animated objects correctly apply secondary colours --- src/paint/map_element/scenery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paint/map_element/scenery.c b/src/paint/map_element/scenery.c index 7873700b1a..414e2ca30d 100644 --- a/src/paint/map_element/scenery.c +++ b/src/paint/map_element/scenery.c @@ -239,7 +239,7 @@ void scenery_paint(uint8 direction, int height, rct_map_element* mapElement) { if (entry->small_scenery.flags & SMALL_SCENERY_FLAG_HAS_PRIMARY_COLOUR) { image_id |= ((mapElement->properties.scenery.colour_1 & 0x1F) << 19) | 0x20000000; if (entry->small_scenery.flags & SMALL_SCENERY_FLAG_HAS_SECONDARY_COLOUR) { - image_id |= ((mapElement->properties.scenery.colour_1 & 0x1F) << 24) | 0x80000000; + image_id |= ((mapElement->properties.scenery.colour_2 & 0x1F) << 24) | 0x80000000; } } if (dword_F64EB0 != 0) {