mirror of https://github.com/OpenRCT2/OpenRCT2.git
Rename track_map_2x2 to kTrackMap2x2
This commit is contained in:
parent
9266a6f0d3
commit
b795d4ba8a
|
@ -50,13 +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,
|
||||
|
|
|
@ -17,7 +17,12 @@
|
|||
|
||||
class StationObject;
|
||||
|
||||
extern const uint8_t track_map_2x2[][4];
|
||||
constexpr uint8_t kTrackMap2x2[][4] = {
|
||||
{ 0, 1, 2, 3 },
|
||||
{ 1, 3, 0, 2 },
|
||||
{ 3, 2, 1, 0 },
|
||||
{ 2, 0, 3, 1 },
|
||||
};
|
||||
extern const uint8_t edges_2x2[];
|
||||
|
||||
extern const uint8_t track_map_3x3[][9];
|
||||
|
|
|
@ -200,7 +200,7 @@ static void PaintSpiralSlide(
|
|||
if (rideEntry == nullptr)
|
||||
return;
|
||||
|
||||
trackSequence = track_map_2x2[direction][trackSequence];
|
||||
trackSequence = kTrackMap2x2[direction][trackSequence];
|
||||
|
||||
int32_t edges = edges_2x2[trackSequence];
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ 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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue