Fix #3999. Animated objects correctly apply secondary colours

This commit is contained in:
duncanspumpkin committed 2016-07-09 08:05:25 +01:00
1 parent 05540cfef0
commit 4fa10b049b
1 file changed
+1 -1
+1 -1
View File
@@ -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) {