1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 17:54:50 +01:00

Prepare for food/drink stall recolouration

This commit is contained in:
Gymnasiast
2019-03-19 22:55:28 +01:00
parent 79318997bc
commit aa21f0fb1d

View File

@@ -90,6 +90,12 @@ void RideObject::ReadLegacy(IReadObjectContext* context, IStream* stream)
// This used to be hard-coded. JSON objects set this themselves.
_presetColours.count = 1;
_presetColours.list[0] = { COLOUR_BRIGHT_RED, COLOUR_BRIGHT_RED, COLOUR_BRIGHT_RED };
if (_legacyType.ride_type[0] == RIDE_TYPE_FOOD_STALL || _legacyType.ride_type[0] == RIDE_TYPE_DRINK_STALL)
{
// In RCT2, no food or drink stall could be recoloured.
_legacyType.flags |= RIDE_ENTRY_FLAG_DISABLE_COLOUR_TAB;
}
}
// Read peep loading positions