mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 09:44:52 +01:00
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.
This commit is contained in:
committed by
GitHub
parent
97e985521e
commit
6808b8b734
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user