From 6808b8b73456f9916ceda04a72a18b693f3bd544 Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Thu, 28 May 2020 22:03:50 +0200 Subject: [PATCH] Fix JSON object walls with only remap colours 2 and 3 (#11821) This fixes the hack, allowing JSON files laid out in the described manner to actually work properly. The objects themselves will also need to be updated, but that can be done separately. --- src/openrct2/object/WallObject.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openrct2/object/WallObject.cpp b/src/openrct2/object/WallObject.cpp index 94b8f7774b..ed69b18882 100644 --- a/src/openrct2/object/WallObject.cpp +++ b/src/openrct2/object/WallObject.cpp @@ -142,6 +142,7 @@ void WallObject::ReadJson(IReadObjectContext* context, const json_t* root) if ((_legacyType.wall.flags & WALL_SCENERY_HAS_SECONDARY_COLOUR) || (_legacyType.wall.flags & WALL_SCENERY_HAS_TERNARY_COLOUR)) { + _legacyType.wall.flags |= WALL_SCENERY_HAS_PRIMARY_COLOUR; _legacyType.wall.flags2 |= WALL_SCENERY_2_NO_SELECT_PRIMARY_COLOUR; } }