mirror of https://github.com/OpenRCT2/OpenRCT2.git
Rename track_map_1x4 to kTrackMap1x4
This commit is contained in:
parent
d6efe4cd53
commit
52ad6861af
|
@ -64,13 +64,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,
|
||||
|
|
|
@ -77,7 +77,12 @@ constexpr uint8_t kEdges4x4[] = {
|
|||
};
|
||||
// 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[];
|
||||
extern const MetalSupportPlace DiagSupportPlacement[];
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue