1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Improve / fix tunnel generation

This commit is contained in:
Ted John
2016-10-08 23:28:35 +01:00
parent f46b97192a
commit 567a99c3bf

View File

@@ -605,9 +605,12 @@ private:
}
}
if (tunnelOffset[0] == tunnelOffset[1] &&
tunnelOffset[0] == tunnelOffset[2] &&
tunnelOffset[0] == tunnelOffset[3])
if (tunnelType[0] == 0xFF)
{
return;
}
if (AllMatch(tunnelOffset, 4) && AllMatch(tunnelType, 4))
{
GenerateTunnelCall(tabs, tunnelOffset[0], tunnelType[0]);
}
@@ -625,7 +628,7 @@ private:
{
if (offset == 0)
{
WriteLine(tabs, "paint_util_push_tunnel_rotated(direction, height, TUNNEL_%d);", offset);
WriteLine(tabs, "paint_util_push_tunnel_rotated(direction, height, TUNNEL_%d);", type);
}
else if (offset < 0)
{