From 66a0fafc93ca4ab9b8c5d2ee8548d2bb0f8426df Mon Sep 17 00:00:00 2001 From: smatz Date: Fri, 18 Jan 2008 14:48:57 +0000 Subject: (svn r11917) -Fix (r3677): AI was reading wrong tile slope while building road bridge --- src/ai/default/default.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index d48f30211..6eb14a024 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -2918,7 +2918,7 @@ static inline void AiCheckBuildRoadBridgeHere(AiRoadFinder *arf, TileIndex tile, tile_new = TILE_MASK(tile_new + TileOffsByDiagDir(dir2)); type = GetTileType(tile_new); - if (type == MP_CLEAR || type == MP_TREES || GetTileSlope(tile, NULL) != SLOPE_FLAT) { + if (type == MP_CLEAR || type == MP_TREES || GetTileSlope(tile_new, NULL) != SLOPE_FLAT) { // Allow a bridge if either we have a tile that's water, rail or street, // or if we found an up tile. if (!flag) return; -- cgit v1.2.3-70-g09d2