Mercurial > hg > openttd
changeset 8351:b5c490dc1ee7 draft
(svn r11917) -Fix (r3677): AI was reading wrong tile slope while building road bridge
author | smatz <smatz@openttd.org> |
---|---|
date | Fri, 18 Jan 2008 14:48:57 +0000 |
parents | 8cde0dcc6818 |
children | b6af581838fd |
files | src/ai/default/default.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -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;