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

Fix maze drawing (#21729)

This commit is contained in:
Michael Steenbeek
2024-04-06 21:14:18 +02:00
committed by GitHub
parent a38039f6e4
commit e190afeb80

View File

@@ -2309,7 +2309,8 @@ void PaintTrack(PaintSession& session, Direction direction, int32_t height, cons
}
const auto& rtd = GetRideTypeDescriptor(trackElement.GetRideType());
const auto trackDrawerEntry = getTrackDrawerEntry(rtd, trackElement.IsInverted(), TrackElementIsCovered(trackType));
bool isInverted = trackElement.IsInverted() && !rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE);
const auto trackDrawerEntry = getTrackDrawerEntry(rtd, isInverted, TrackElementIsCovered(trackType));
if (trackDrawerEntry.Drawer != nullptr)
{