mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix tunnel dumping
This commit is contained in:
@@ -153,8 +153,8 @@ namespace Printer {
|
||||
s += "\n";
|
||||
|
||||
for (int direction = 0; direction < 4; ++direction) {
|
||||
std::string leftEdge = PrintSideTunnelEdge(tunnelCalls[direction][2]);
|
||||
std::string rightEdge = PrintSideTunnelEdge(tunnelCalls[direction][3]);
|
||||
std::string leftEdge = PrintSideTunnelEdge(tunnelCalls[direction][3]);
|
||||
std::string rightEdge = PrintSideTunnelEdge(tunnelCalls[direction][2]);
|
||||
s += String::Format(" %s %s ", leftEdge.c_str(), rightEdge.c_str());
|
||||
}
|
||||
s += "\n";
|
||||
@@ -204,7 +204,7 @@ namespace Printer {
|
||||
} else {
|
||||
offset = String::Format("+%d", edge.offset);
|
||||
}
|
||||
s = String::Format("%3s/%X ", offset.c_str(), edge.type);
|
||||
s = String::Format("%3s/%X", offset.c_str(), edge.type);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -594,8 +594,8 @@ static uint8 TestTrackElementSideTunnels(uint8 rideType, uint8 trackType, uint8
|
||||
CallOriginal(rideType, trackType, direction, trackSequence, height + offset, &mapElement);
|
||||
}
|
||||
|
||||
uint8 rightIndex = (4 - direction) % 4;
|
||||
uint8 leftIndex = (rightIndex + 1) % 4;
|
||||
uint8 rightIndex = (direction + 1) % 4;
|
||||
uint8 leftIndex = direction;
|
||||
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
tileTunnelCalls[direction][i].call = TUNNELCALL_SKIPPED;
|
||||
@@ -625,8 +625,8 @@ static uint8 TestTrackElementSideTunnels(uint8 rideType, uint8 trackType, uint8
|
||||
CallNew(rideType, trackType, direction, trackSequence, height + offset, &mapElement);
|
||||
}
|
||||
|
||||
uint8 rightIndex = (4 - direction) % 4;
|
||||
uint8 leftIndex = (rightIndex + 1) % 4;
|
||||
uint8 rightIndex = (direction + 1) % 4;
|
||||
uint8 leftIndex = direction;
|
||||
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
newTileTunnelCalls[direction][i].call = TUNNELCALL_SKIPPED;
|
||||
|
||||
Reference in New Issue
Block a user