(svn r9943) -Fix [FS#806]: building roads/trams did take notice of the foundation of the opposite roadtype.

This commit is contained in:
rubidium 2007-05-26 21:00:48 +00:00
parent 016e651ffd
commit 0e07a938b7
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ do_clear:;
cost += ret;
}
ret = CheckRoadSlope(tileh, &pieces, existing);
ret = CheckRoadSlope(tileh, &pieces, (IsTileType(tile, MP_STREET) ? GetAllRoadBits(tile) : ROAD_NONE) | existing);
/* Return an error if we need to build a foundation (ret != 0) but the
* current patch-setting is turned off (or stupid AI@work) */
if (CmdFailed(ret) || (ret != 0 && (!_patches.build_on_slopes || _is_old_ai_player)))