1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix tunnel dumping

This commit is contained in:
Marijn van der Werf
2016-10-22 01:04:17 +02:00
parent 76188d2c4c
commit ffbe380da7
2 changed files with 7 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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;