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

Replace ride type check in S4Importer

This is more preparation needed to make ride types into objects. Supersedes #17209.
This commit is contained in:
Michael Steenbeek
2022-07-27 12:44:15 +02:00
committed by GitHub
parent a516b0ce34
commit 710e0e30db

View File

@@ -1158,7 +1158,7 @@ namespace RCT1
// In RCT1 and AA, the maze was always hedges.
// LL has 4 types, like RCT2. For LL, only guard against invalid values.
if (dst->type == RIDE_TYPE_MAZE)
if (src->type == RideType::HedgeMaze)
{
if (_gameVersion < FILE_VERSION_RCT1_LL || src->track_colour_supports[0] > 3)
dst->track_colour[0].supports = MAZE_WALL_TYPE_HEDGE;