Fix maze drawing (#21729)

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2024-04-06 21:14:18 +02:00
1 parent a38039f6e4
commit e190afeb80
1 file changed
+2 -1
+2 -1
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)
{