From df0b45d60873ea549160baa2af6847dba015795f Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 9 Apr 2006 10:24:57 +0000 Subject: (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... --- ai/trolly/pathfinder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ai/trolly') 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; } } } -- cgit v1.2.3-70-g09d2