mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #21924 from Harry-Hopkinson/refactor-constants-TrackPaint.h
Refactor constants in TrackPaint.cpp
This commit is contained in:
commit
409da62fe8
|
@ -50,76 +50,6 @@ static constexpr TileCoordsXY EntranceOffsetEdgeNW[] = {
|
|||
{ -1, 0 },
|
||||
};
|
||||
|
||||
const uint8_t track_map_2x2[][4] = {
|
||||
{ 0, 1, 2, 3 },
|
||||
{ 1, 3, 0, 2 },
|
||||
{ 3, 2, 1, 0 },
|
||||
{ 2, 0, 3, 1 },
|
||||
};
|
||||
|
||||
const uint8_t edges_2x2[] = {
|
||||
EDGE_NE | EDGE_NW,
|
||||
EDGE_NE | EDGE_SE,
|
||||
EDGE_SW | EDGE_NW,
|
||||
EDGE_SW | EDGE_SE,
|
||||
};
|
||||
|
||||
const uint8_t track_map_3x3[][9] = {
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8 },
|
||||
{ 0, 3, 5, 7, 2, 8, 1, 6, 4 },
|
||||
{ 0, 7, 8, 6, 5, 4, 3, 1, 2 },
|
||||
{ 0, 6, 4, 1, 8, 2, 7, 3, 5 },
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
const uint8_t edges_3x3[] = {
|
||||
0,
|
||||
EDGE_NE | EDGE_NW,
|
||||
EDGE_NE,
|
||||
EDGE_NE | EDGE_SE,
|
||||
EDGE_NW,
|
||||
EDGE_SE,
|
||||
EDGE_SW | EDGE_NW,
|
||||
EDGE_SW | EDGE_SE,
|
||||
EDGE_SW,
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
const uint8_t track_map_4x4[][16] = {
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
|
||||
{ 3, 7, 11, 15, 2, 6, 10, 14, 1, 5, 9, 13, 0, 4, 8, 12 },
|
||||
{ 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 },
|
||||
{ 12, 8, 4, 0, 13, 9, 5, 1, 14, 10, 6, 2, 15, 11, 7, 3 },
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
const uint8_t edges_4x4[] = {
|
||||
EDGE_NE | EDGE_NW,
|
||||
EDGE_NE,
|
||||
EDGE_NE,
|
||||
EDGE_NE | EDGE_SE,
|
||||
EDGE_NW,
|
||||
0,
|
||||
0,
|
||||
EDGE_SE,
|
||||
EDGE_NW,
|
||||
0,
|
||||
0,
|
||||
EDGE_SE,
|
||||
EDGE_NW | EDGE_SW,
|
||||
EDGE_SW,
|
||||
EDGE_SW,
|
||||
EDGE_SW | EDGE_SE,
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
const int32_t DiagBlockedSegments[] = {
|
||||
EnumsToFlags(PaintSegment::centre, PaintSegment::topRightSide, PaintSegment::bottomRightSide, PaintSegment::rightCorner),
|
||||
EnumsToFlags(PaintSegment::centre, PaintSegment::topRightSide, PaintSegment::topLeftSide, PaintSegment::topCorner),
|
||||
EnumsToFlags(PaintSegment::bottomLeftSide, PaintSegment::centre, PaintSegment::bottomCorner, PaintSegment::bottomRightSide),
|
||||
EnumsToFlags(PaintSegment::bottomLeftSide, PaintSegment::centre, PaintSegment::leftCorner, PaintSegment::topLeftSide),
|
||||
};
|
||||
|
||||
const MetalSupportPlace DiagSupportPlacement[] = {
|
||||
MetalSupportPlace::LeftCorner,
|
||||
MetalSupportPlace::TopCorner,
|
||||
|
@ -127,13 +57,6 @@ const MetalSupportPlace DiagSupportPlacement[] = {
|
|||
MetalSupportPlace::BottomCorner,
|
||||
};
|
||||
|
||||
const uint8_t track_map_1x4[][4] = {
|
||||
{ 0, 1, 2, 3 },
|
||||
{ 2, 3, 0, 1 },
|
||||
{ 2, 3, 0, 1 },
|
||||
{ 0, 1, 2, 3 },
|
||||
};
|
||||
|
||||
const uint32_t floorSpritesCork[] = {
|
||||
SPR_FLOOR_CORK_SE_SW,
|
||||
SPR_FLOOR_CORK_SW,
|
||||
|
|
|
@ -17,18 +17,79 @@
|
|||
|
||||
class StationObject;
|
||||
|
||||
extern const uint8_t track_map_2x2[][4];
|
||||
extern const uint8_t edges_2x2[];
|
||||
constexpr uint8_t kTrackMap2x2[][4] = {
|
||||
{ 0, 1, 2, 3 },
|
||||
{ 1, 3, 0, 2 },
|
||||
{ 3, 2, 1, 0 },
|
||||
{ 2, 0, 3, 1 },
|
||||
};
|
||||
constexpr uint8_t kEdges2x2[] = {
|
||||
EDGE_NE | EDGE_NW,
|
||||
EDGE_NE | EDGE_SE,
|
||||
EDGE_SW | EDGE_NW,
|
||||
EDGE_SW | EDGE_SE,
|
||||
};
|
||||
|
||||
extern const uint8_t track_map_3x3[][9];
|
||||
extern const uint8_t edges_3x3[];
|
||||
constexpr uint8_t kTrackMap3x3[][9] = {
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8 },
|
||||
{ 0, 3, 5, 7, 2, 8, 1, 6, 4 },
|
||||
{ 0, 7, 8, 6, 5, 4, 3, 1, 2 },
|
||||
{ 0, 6, 4, 1, 8, 2, 7, 3, 5 },
|
||||
};
|
||||
// clang-format off
|
||||
constexpr uint8_t kEdges3x3[] = {
|
||||
0,
|
||||
EDGE_NE | EDGE_NW,
|
||||
EDGE_NE,
|
||||
EDGE_NE | EDGE_SE,
|
||||
EDGE_NW,
|
||||
EDGE_SE,
|
||||
EDGE_SW | EDGE_NW,
|
||||
EDGE_SW | EDGE_SE,
|
||||
EDGE_SW,
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
extern const uint8_t track_map_4x4[][16];
|
||||
extern const uint8_t edges_4x4[];
|
||||
constexpr uint8_t kTrackMap4x4[][16] = {
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
|
||||
{ 3, 7, 11, 15, 2, 6, 10, 14, 1, 5, 9, 13, 0, 4, 8, 12 },
|
||||
{ 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 },
|
||||
{ 12, 8, 4, 0, 13, 9, 5, 1, 14, 10, 6, 2, 15, 11, 7, 3 },
|
||||
};
|
||||
// clang-format off
|
||||
constexpr uint8_t kEdges4x4[] = {
|
||||
EDGE_NE | EDGE_NW,
|
||||
EDGE_NE,
|
||||
EDGE_NE,
|
||||
EDGE_NE | EDGE_SE,
|
||||
EDGE_NW,
|
||||
0,
|
||||
0,
|
||||
EDGE_SE,
|
||||
EDGE_NW,
|
||||
0,
|
||||
0,
|
||||
EDGE_SE,
|
||||
EDGE_NW | EDGE_SW,
|
||||
EDGE_SW,
|
||||
EDGE_SW,
|
||||
EDGE_SW | EDGE_SE,
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
extern const uint8_t track_map_1x4[][4];
|
||||
constexpr uint8_t kTrackMap1x4[][4] = {
|
||||
{ 0, 1, 2, 3 },
|
||||
{ 2, 3, 0, 1 },
|
||||
{ 2, 3, 0, 1 },
|
||||
{ 0, 1, 2, 3 },
|
||||
};
|
||||
|
||||
extern const int32_t DiagBlockedSegments[];
|
||||
constexpr int32_t kDiagBlockedSegments[] = {
|
||||
EnumsToFlags(PaintSegment::centre, PaintSegment::topRightSide, PaintSegment::bottomRightSide, PaintSegment::rightCorner),
|
||||
EnumsToFlags(PaintSegment::centre, PaintSegment::topRightSide, PaintSegment::topLeftSide, PaintSegment::topCorner),
|
||||
EnumsToFlags(PaintSegment::bottomLeftSide, PaintSegment::centre, PaintSegment::bottomCorner, PaintSegment::bottomRightSide),
|
||||
EnumsToFlags(PaintSegment::bottomLeftSide, PaintSegment::centre, PaintSegment::leftCorner, PaintSegment::topLeftSide),
|
||||
};
|
||||
extern const MetalSupportPlace DiagSupportPlacement[];
|
||||
|
||||
enum
|
||||
|
|
|
@ -14748,7 +14748,7 @@ static void BolligerMabillardTrackDiagBrakes(
|
|||
MetalASupportsPaintSetup(session, supportType, DiagSupportPlacement[direction], 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -14768,7 +14768,7 @@ static void BolligerMabillardTrackDiagBlockBrakes(
|
|||
MetalASupportsPaintSetup(session, supportType, DiagSupportPlacement[direction], 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
|
|
@ -6897,7 +6897,7 @@ static void CompactInvertedRCTrackDiagBrakes(
|
|||
session, 3, height + 29, direction, trackSequence, session.TrackColours, CompactInvertedDiagBrakeImages,
|
||||
defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
|
||||
if (trackSequence == 3)
|
||||
|
@ -6917,7 +6917,7 @@ static void CompactInvertedRCTrackDiagBlockBrakes(
|
|||
CompactInvertedDiagBlockBrakeImages[trackElement.IsBrakeClosed()], defaultDiagTileOffsets, defaultDiagBoundLengths,
|
||||
nullptr);
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
|
||||
if (trackSequence == 3)
|
||||
|
|
|
@ -6668,7 +6668,7 @@ static void CorkscrewRCTrackDiagBrakes(
|
|||
session, MetalSupportType::Tubes, DiagSupportPlacement[direction], 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -6688,7 +6688,7 @@ static void CorkscrewRCTrackDiagBlockBrakes(
|
|||
session, MetalSupportType::Tubes, DiagSupportPlacement[direction], 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
|
|
@ -10161,7 +10161,7 @@ static void FlyingRCTrackDiagBrakesInverted(
|
|||
session, 1, height + 24, direction, trackSequence, session.TrackColours, InvertedRCDiagBrakeImages,
|
||||
defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
|
||||
if (trackSequence == 3)
|
||||
|
|
|
@ -6602,7 +6602,7 @@ static void inverted_rc_track_diag_brakes(
|
|||
session, 1, height + 29, direction, trackSequence, session.TrackColours, InvertedRCDiagBrakeImages,
|
||||
defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
|
||||
if (trackSequence == 3)
|
||||
|
|
|
@ -4642,7 +4642,7 @@ static void JuniorRCPaintTrackDiagFlat(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -4662,7 +4662,7 @@ static void JuniorRCTrackDiagBrakes(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
@ -4683,7 +4683,7 @@ static void JuniorRCTrackDiagBlockBrakes(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
@ -4705,7 +4705,7 @@ static void JuniorRCPaintTrackDiag25DegUp(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -4727,7 +4727,7 @@ static void JuniorRCPaintTrackDiagFlatTo25DegUp(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
@ -4750,7 +4750,7 @@ static void JuniorRCPaintTrackDiagFlatTo60DegUp(
|
|||
height + 6, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20);
|
||||
}
|
||||
|
@ -4772,7 +4772,7 @@ static void JuniorRCPaintTrackDiag25DegUpToFlat(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -4795,7 +4795,7 @@ static void JuniorRCPaintTrackDiag60DegUpToFlat(
|
|||
height + 13, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20);
|
||||
}
|
||||
|
@ -4817,7 +4817,7 @@ static void JuniorRCPaintTrackDiag25DegDown(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -4840,7 +4840,7 @@ static void JuniorRCPaintTrackDiagFlatTo25DegDown(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -4864,7 +4864,7 @@ static void JuniorRCPaintTrackDiagFlatTo60DegDown(
|
|||
height + 7, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
@ -4887,7 +4887,7 @@ static void JuniorRCPaintTrackDiag25DegDownToFlat(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
@ -4911,7 +4911,7 @@ static void JuniorRCPaintTrackDiag60DegDownToFlat(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -4938,7 +4938,7 @@ static void JuniorRCDiagFlatToLeftBankPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -4965,7 +4965,7 @@ static void JuniorRCDiagFlatToRightBankPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -4992,7 +4992,7 @@ static void JuniorRCDiagLeftBankToFlatPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -5019,7 +5019,7 @@ static void JuniorRCDiagRightBankToFlatPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -5046,7 +5046,7 @@ static void JuniorRCDiagLeftBankTo25DegUpPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
@ -5073,7 +5073,7 @@ static void JuniorRCDiagRightBankTo25DegUpPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
@ -5100,7 +5100,7 @@ static void JuniorRCDiag25DegUpToLeftBankPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -5127,7 +5127,7 @@ static void JuniorRCDiag25DegUpToRightBankPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -5154,7 +5154,7 @@ static void JuniorRCDiagLeftBankTo25DegDownPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -5181,7 +5181,7 @@ static void JuniorRCDiagRightBankTo25DegDownPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -5208,7 +5208,7 @@ static void JuniorRCDiag25DegDownToLeftBankPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
@ -5235,7 +5235,7 @@ static void JuniorRCDiag25DegDownToRightBankPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
@ -5271,7 +5271,7 @@ static void JuniorRCDiagLeftBankPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -5293,7 +5293,7 @@ static void JuniorRCDiagRightBankPaintSetup(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -5547,7 +5547,7 @@ static void JuniorRCPaintTrackDiag60DegUp(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
|
||||
}
|
||||
|
@ -5570,7 +5570,7 @@ static void JuniorRCPaintTrackDiag60DegDown(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
|
||||
}
|
||||
|
@ -5594,7 +5594,7 @@ static void JuniorRCPaintTrackDiag25DegUpTo60DegUp(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20);
|
||||
}
|
||||
|
@ -5628,7 +5628,7 @@ static void JuniorRCPaintTrackDiag60DegUpTo25DegUp(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20);
|
||||
}
|
||||
|
@ -5662,7 +5662,7 @@ static void JuniorRCPaintTrackDiag25DegDownTo60DegDown(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20);
|
||||
}
|
||||
|
@ -5686,7 +5686,7 @@ static void JuniorRCPaintTrackDiag60DegDownTo25DegDown(
|
|||
height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 72, 0x20);
|
||||
}
|
||||
|
|
|
@ -4076,7 +4076,7 @@ static void LayDownRCTrackDiagBrakes(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
|
||||
TrackPaintUtilDiagTilesPaint(
|
||||
session, -3, height + 24, direction, trackSequence, session.TrackColours, LaydownDiagBrakeImages,
|
||||
|
@ -4096,7 +4096,7 @@ static void LayDownRCTrackDiagBlockBrakes(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
|
||||
TrackPaintUtilDiagTilesPaint(
|
||||
session, -3, height + 24, direction, trackSequence, session.TrackColours,
|
||||
|
|
|
@ -7710,7 +7710,7 @@ static void MultiDimensionRCTrackDiagBrakes(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
if (trackElement.IsInverted())
|
||||
{
|
||||
TrackPaintUtilDiagTilesPaint(
|
||||
|
@ -7748,7 +7748,7 @@ static void MultiDimensionRCTrackDiagBlockBrakes(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
if (trackElement.IsInverted())
|
||||
{
|
||||
TrackPaintUtilDiagTilesPaint(
|
||||
|
|
|
@ -6340,7 +6340,7 @@ static void StandUpRCTrackDiagBrakes(
|
|||
session, MetalSupportType::Tubes, DiagSupportPlacement[direction], 8, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -6359,7 +6359,7 @@ static void StandUpRCTrackDiagBlockBrakes(
|
|||
session, MetalSupportType::Tubes, DiagSupportPlacement[direction], 8, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
|
|
@ -1642,7 +1642,7 @@ static void SteeplechaseTrackDiagBrakes(
|
|||
session, MetalSupportType::Stick, DiagSupportPlacement[direction], 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
|
|
@ -9732,7 +9732,7 @@ static void WoodenRCTrackDiagBrakes(
|
|||
session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -10003,7 +10003,7 @@ static void WoodenRCTrackDiagBlockBrakes(
|
|||
session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
|
|
@ -50,9 +50,9 @@ static void PaintCircus(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
|
|
@ -84,9 +84,9 @@ static void PaintCrookedHouse(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
|
|
@ -47,9 +47,9 @@ static void PaintDodgems(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
uint8_t relativeTrackSequence = track_map_4x4[direction][trackSequence];
|
||||
uint8_t relativeTrackSequence = kTrackMap4x4[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_4x4[relativeTrackSequence];
|
||||
int32_t edges = kEdges4x4[relativeTrackSequence];
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
|
|
@ -104,7 +104,7 @@ static void PaintFerrisWheel(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
uint8_t relativeTrackSequence = track_map_1x4[direction][trackSequence];
|
||||
uint8_t relativeTrackSequence = kTrackMap1x4[direction][trackSequence];
|
||||
|
||||
int32_t edges;
|
||||
if (direction & 1)
|
||||
|
|
|
@ -38,9 +38,9 @@ static void PaintFlyingSaucers(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
uint8_t relativeTrackSequence = track_map_4x4[direction][trackSequence];
|
||||
uint8_t relativeTrackSequence = kTrackMap4x4[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_4x4[relativeTrackSequence];
|
||||
int32_t edges = kEdges4x4[relativeTrackSequence];
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
|
|
@ -64,9 +64,9 @@ static void PaintHauntedHouse(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
|
|
@ -105,9 +105,9 @@ static void PaintMerryGoRound(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
|
|
@ -83,9 +83,9 @@ static void PaintObservationTowerBase(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
CoordsXY position = session.MapPosition;
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
|
|
|
@ -87,9 +87,9 @@ static void PaintSpaceRings(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
CoordsXY position = session.MapPosition;
|
||||
|
||||
ImageId imageId;
|
||||
|
|
|
@ -200,9 +200,9 @@ static void PaintSpiralSlide(
|
|||
if (rideEntry == nullptr)
|
||||
return;
|
||||
|
||||
trackSequence = track_map_2x2[direction][trackSequence];
|
||||
trackSequence = kTrackMap2x2[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_2x2[trackSequence];
|
||||
int32_t edges = kEdges2x2[trackSequence];
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
|
|
@ -52,9 +52,9 @@ static void Paint3dCinema(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
|
||||
auto stationColour = GetStationColourScheme(session, trackElement);
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
|
|
|
@ -91,9 +91,9 @@ static void PaintEnterprise(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_4x4[direction][trackSequence];
|
||||
trackSequence = kTrackMap4x4[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_4x4[trackSequence];
|
||||
int32_t edges = kEdges4x4[trackSequence];
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
|
|
@ -91,9 +91,9 @@ static void PaintLaunchedFreefallBase(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
|
|
@ -213,7 +213,7 @@ static void PaintMagicCarpet(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
uint8_t relativeTrackSequence = track_map_1x4[direction][trackSequence];
|
||||
uint8_t relativeTrackSequence = kTrackMap1x4[direction][trackSequence];
|
||||
|
||||
// The end tiles do not have a platform
|
||||
switch (relativeTrackSequence)
|
||||
|
|
|
@ -104,9 +104,9 @@ static void PaintMotionSimulator(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_2x2[direction][trackSequence];
|
||||
trackSequence = kTrackMap2x2[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_2x2[trackSequence];
|
||||
int32_t edges = kEdges2x2[trackSequence];
|
||||
|
||||
auto stationColour = GetStationColourScheme(session, trackElement);
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
|
|
|
@ -103,9 +103,9 @@ static void PaintRotoDropBase(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
session, WoodenSupportType::Truss, WoodenSupportSubType::NeSw, direction, height,
|
||||
|
|
|
@ -127,7 +127,7 @@ static void PaintSwingingInverterShip(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
uint8_t relativeTrackSequence = track_map_1x4[direction][trackSequence];
|
||||
uint8_t relativeTrackSequence = kTrackMap1x4[direction][trackSequence];
|
||||
ImageId imageId;
|
||||
|
||||
const StationObject* stationObject = ride.GetStationObject();
|
||||
|
|
|
@ -182,9 +182,9 @@ static void PaintTopSpin(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
|
||||
auto stationColour = GetStationColourScheme(session, trackElement);
|
||||
WoodenASupportsPaintSetupRotated(
|
||||
|
|
|
@ -85,9 +85,9 @@ static void PaintTwist(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
const uint8_t edges = edges_3x3[trackSequence];
|
||||
const uint8_t edges = kEdges3x3[trackSequence];
|
||||
|
||||
ImageId imageId;
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ static void PaintLiftBase(
|
|||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
trackSequence = kTrackMap3x3[direction][trackSequence];
|
||||
|
||||
if (trackSequence == 0)
|
||||
{
|
||||
|
@ -68,7 +68,7 @@ static void PaintLiftBase(
|
|||
return;
|
||||
}
|
||||
|
||||
int32_t edges = edges_3x3[trackSequence];
|
||||
int32_t edges = kEdges3x3[trackSequence];
|
||||
|
||||
auto imageId = session.SupportColours.WithIndex(SPR_FLOOR_METAL_B);
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 32, 32, 1 } });
|
||||
|
|
|
@ -1168,7 +1168,7 @@ static void PaintMonorailTrackDiagFlat(
|
|||
session, MetalSupportType::Boxed, DiagSupportPlacement[direction], 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
|
||||
}
|
||||
|
@ -1190,7 +1190,7 @@ static void PaintMonorailTrackDiag25DegUp(
|
|||
session, MetalSupportType::Boxed, DiagSupportPlacement[direction], 8, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -1212,7 +1212,7 @@ static void PaintMonorailTrackDiagFlatTo25DegUp(
|
|||
session, MetalSupportType::Boxed, DiagSupportPlacement[direction], 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
@ -1234,7 +1234,7 @@ static void PaintMonorailTrackDiag25DegUpToFlat(
|
|||
session, MetalSupportType::Boxed, DiagSupportPlacement[direction], 4, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -1256,7 +1256,7 @@ static void PaintMonorailTrackDiag25DegDown(
|
|||
session, MetalSupportType::Boxed, DiagSupportPlacement[direction], 8, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -1278,7 +1278,7 @@ static void PaintMonorailTrackDiagFlatTo25DegDown(
|
|||
session, MetalSupportType::Boxed, DiagSupportPlacement[direction], 4, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20);
|
||||
}
|
||||
|
@ -1300,7 +1300,7 @@ static void PaintMonorailTrackDiag25DegDownToFlat(
|
|||
session, MetalSupportType::Boxed, DiagSupportPlacement[direction], 0, height, session.SupportColours);
|
||||
}
|
||||
|
||||
int32_t blockedSegments = DiagBlockedSegments[trackSequence];
|
||||
int32_t blockedSegments = kDiagBlockedSegments[trackSequence];
|
||||
PaintUtilSetSegmentSupportHeight(session, PaintUtilRotateSegments(blockedSegments, direction), 0xFFFF, 0);
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue