mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 01:35:06 +01:00
Fix import of RCT1 mazes
This commit is contained in:
@@ -939,16 +939,6 @@ private:
|
||||
|
||||
void SetRideColourScheme(Ride * dst, rct1_ride * src)
|
||||
{
|
||||
// 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 (_gameVersion < FILE_VERSION_RCT1_LL || src->track_colour_supports[0] > 3)
|
||||
dst->track_colour_supports[0] = MAZE_WALL_TYPE_HEDGE;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Colours
|
||||
dst->colour_scheme_type = src->colour_scheme;
|
||||
if (_gameVersion == FILE_VERSION_RCT1)
|
||||
@@ -1031,6 +1021,16 @@ private:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 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 (_gameVersion < FILE_VERSION_RCT1_LL || src->track_colour_supports[0] > 3)
|
||||
dst->track_colour_supports[0] = MAZE_WALL_TYPE_HEDGE;
|
||||
else
|
||||
dst->track_colour_supports[0] = src->track_colour_supports[0];
|
||||
}
|
||||
}
|
||||
|
||||
void FixRideVehicleLinks(const uint16 * spriteIndexMap)
|
||||
|
||||
Reference in New Issue
Block a user