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 | df0b45d60873ea549160baa2af6847dba015795f (patch) | |
tree | d289ab898d220a8d3dcf5fc8dc111ee3bcfb8de0 /ai/trolly | |
parent | 40c1097f045e7a8faf50d086ebd39d59ca936521 (diff) | |
download | openttd-df0b45d60873ea549160baa2af6847dba015795f.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')
-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; } } } |