1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Fix custom large scenery appearing black

This commit is contained in:
Ted John
2022-03-21 19:03:08 +00:00
parent 4cdd9bd813
commit 313d46489e

View File

@@ -67,6 +67,15 @@ void LargeSceneryObject::ReadLegacy(IReadObjectContext* context, OpenRCT2::IStre
context->LogError(ObjectError::InvalidProperty, "Sell price can not be more than buy price.");
}
}
// RCT2 would always remap primary and secondary colours for large scenery
// This meant some custom large scenery objects did not get exported with the required flags, because they still
// functioned, but without the ability to change the colours when the object was selected in the scenery window.
// OpenRCT2 changes the rendering so that the flags are required, we therefore have to assume all custom objects
// can be recoloured. The minor drawback to this, is that some custom large scenery will have the option to change
// the primary and secondary colour, however no effect will be seen.
_legacyType.flags |= LARGE_SCENERY_FLAG_HAS_PRIMARY_COLOUR;
_legacyType.flags |= LARGE_SCENERY_FLAG_HAS_SECONDARY_COLOUR;
}
void LargeSceneryObject::Load()