1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 16:39:09 +00:00

(svn r4333) Revert back to a direct map access in one case until the exact conditions for this piece of code are investigated. The IsRoad() function is causing me headaches...

This commit is contained in:
tron
2006-04-09 10:24:57 +00:00
parent 8111eca43e
commit 0a509a4c48

View File

@@ -234,7 +234,7 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr
if (IsTunnel(atile)) { if (IsTunnel(atile)) {
if (GetTunnelDirection(atile) != i) continue; if (GetTunnelDirection(atile) != i) continue;
} else { } else {
if (GetBridgeRampDirection(atile) != i) continue; if ((_m[atile].m5 & 1U) != DiagDirToAxis(i)) continue;
} }
} }
} }