1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Change go kart medium turn blocked segments to wide segments

This commit is contained in:
mix
2025-10-18 04:06:46 +01:00
parent 05c17505a6
commit 37ffb62ab8

View File

@@ -1982,17 +1982,19 @@ static void TrackLeftQuarterTurn5Tiles(
PaintUtilPushTunnelRotated(session, DirectionPrev(direction), height, kTunnelGroup, TunnelSubType::Flat);
}
static constexpr std::array<int32_t, 7> blockedSegments = {
EnumsToFlags(PaintSegment::top, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomLeft),
kSegmentsAll,
EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight),
EnumsToFlags(
PaintSegment::top, PaintSegment::left, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::topRight,
PaintSegment::bottomLeft),
EnumsToFlags(PaintSegment::right, PaintSegment::centre, PaintSegment::topRight, PaintSegment::bottomRight),
kSegmentsAll,
EnumsToFlags(
PaintSegment::top, PaintSegment::right, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft,
PaintSegment::topRight, PaintSegment::bottomLeft, PaintSegment::bottomRight),
EnumsToFlags(PaintSegment::right, PaintSegment::topRight, PaintSegment::bottomRight),
EnumsToFlags(
PaintSegment::left, PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomLeft,
PaintSegment::bottomRight),
EnumsToFlags(PaintSegment::bottom, PaintSegment::centre, PaintSegment::topLeft, PaintSegment::bottomRight),
kSegmentsAll,
};
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments[trackSequence], direction), 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + kDefaultGeneralSupportHeight);