changeset 3484:946c357ba370 draft

(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...
author tron <tron@openttd.org>
date Sun, 09 Apr 2006 10:24:57 +0000
parents 67144af97951
children 7bcf7ae9fe8a
files ai/trolly/pathfinder.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ai/trolly/pathfinder.c
+++ b/ai/trolly/pathfinder.c
@@ -234,7 +234,7 @@
 					if (IsTunnel(atile)) {
 						if (GetTunnelDirection(atile) != i) continue;
 					} else {
-						if (GetBridgeRampDirection(atile) != i) continue;
+						if ((_m[atile].m5 & 1U) != DiagDirToAxis(i)) continue;
 					}
 				}
 			}