summaryrefslogtreecommitdiff
path: root/ai/trolly/pathfinder.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-09 10:24:57 +0000
committertron <tron@openttd.org>2006-04-09 10:24:57 +0000
commit0a509a4c486646f3c4fd1fa7f629226b4f0fbbbb (patch)
treed289ab898d220a8d3dcf5fc8dc111ee3bcfb8de0 /ai/trolly/pathfinder.c
parent8111eca43e9f066eca41b157d60bad6050fc1cfd (diff)
downloadopenttd-0a509a4c486646f3c4fd1fa7f629226b4f0fbbbb.tar.xz
(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...
Diffstat (limited to 'ai/trolly/pathfinder.c')
-rw-r--r--ai/trolly/pathfinder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai/trolly/pathfinder.c b/ai/trolly/pathfinder.c
index 241744afd..79ea878c3 100644
--- a/ai/trolly/pathfinder.c
+++ b/ai/trolly/pathfinder.c
@@ -234,7 +234,7 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr
if (IsTunnel(atile)) {
if (GetTunnelDirection(atile) != i) continue;
} else {
- if (GetBridgeRampDirection(atile) != i) continue;
+ if ((_m[atile].m5 & 1U) != DiagDirToAxis(i)) continue;
}
}
}