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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user