1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 03:35:09 +01:00

Move track design appearance to its own struct

This commit is contained in:
Gymnasiast
2024-07-02 18:50:12 +02:00
parent 2c6491f34a
commit 2c7d2fff7c
28 changed files with 200 additions and 172 deletions

View File

@@ -919,7 +919,7 @@ namespace OpenRCT2::Scripting
if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE))
throw DukException() << "Cannot set 'colourScheme' property, TrackElement belongs to a maze.";
el->SetColourScheme(value.as_uint());
el->SetColourScheme(static_cast<RideColourScheme>(value.as_uint()));
Invalidate();
}
catch (const DukException& e)