1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Reimplement landscape door drawing (#11233)

This commit is contained in:
Michael Steenbeek
2020-04-17 19:59:38 +02:00
committed by GitHub
parent b449e445f7
commit ffa9996336
4 changed files with 20 additions and 5 deletions

View File

@@ -47,7 +47,8 @@ void TerrainEdgeObject::DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int32
void TerrainEdgeObject::ReadJson(IReadObjectContext* context, const json_t* root)
{
// auto properties = json_object_get(root, "properties");
auto properties = json_object_get(root, "properties");
HasDoors = ObjectJsonHelpers::GetBoolean(properties, "hasDoors", false);
ObjectJsonHelpers::LoadStrings(root, GetStringTable());
ObjectJsonHelpers::LoadImages(context, root, GetImageTable());