# HG changeset patch # User smatz # Date 1200667737 0 # Node ID 98ccd8072daffa061fac780b4c8ba64668b1f8da # Parent f3e877a92e2bacee4ac2047d2ba186a33373be9a (svn r11917) -Fix (r3677): AI was reading wrong tile slope while building road bridge diff -r f3e877a92e2b -r 98ccd8072daf src/ai/default/default.cpp --- a/src/ai/default/default.cpp Fri Jan 18 13:02:47 2008 +0000 +++ b/src/ai/default/default.cpp Fri Jan 18 14:48:57 2008 +0000 @@ -2918,7 +2918,7 @@ 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;