From 4030d9050ed75b21f4bb8874a53a2353eeb04d9a Mon Sep 17 00:00:00 2001 From: Richard Fine Date: Sun, 20 Sep 2020 01:54:01 -0400 Subject: [PATCH] Fix #12974: unable to build fences on slopes (#12975) Fix the casing of 'isAllowedOnSlope' to match the way it is cased in the JSON files, which causes the flag to be read correctly and re-enables building on slopes for the scenery pieces which have it specified. --- src/openrct2/object/WallObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/object/WallObject.cpp b/src/openrct2/object/WallObject.cpp index 686ea03e75..7fbe8453d6 100644 --- a/src/openrct2/object/WallObject.cpp +++ b/src/openrct2/object/WallObject.cpp @@ -114,7 +114,7 @@ void WallObject::ReadJson(IReadObjectContext* context, json_t& root) properties, { { "hasPrimaryColour", WALL_SCENERY_HAS_PRIMARY_COLOUR, Json::FlagType::Normal }, - { "IsAllowedOnSlope", WALL_SCENERY_CANT_BUILD_ON_SLOPE, Json::FlagType::Inverted }, + { "isAllowedOnSlope", WALL_SCENERY_CANT_BUILD_ON_SLOPE, Json::FlagType::Inverted }, { "hasSecondaryColour", WALL_SCENERY_HAS_SECONDARY_COLOUR, Json::FlagType::Normal }, { "hasTernaryColour", WALL_SCENERY_HAS_TERNARY_COLOUR, Json::FlagType::Normal }, { "hasGlass", WALL_SCENERY_HAS_GLASS, Json::FlagType::Normal },