diff options
author | tron <tron@openttd.org> | 2006-04-09 10:24:57 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-09 10:24:57 +0000 |
commit | 0a509a4c486646f3c4fd1fa7f629226b4f0fbbbb (patch) | |
tree | d289ab898d220a8d3dcf5fc8dc111ee3bcfb8de0 /ai/trolly/pathfinder.c | |
parent | 8111eca43e9f066eca41b157d60bad6050fc1cfd (diff) | |
download | openttd-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.c | 2 |
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; } } } |