(svn r10140) -Fix [FS#867]: an industry could overbuild a bridge.

This commit is contained in:
rubidium 2007-06-13 15:22:28 +00:00
parent a702f6b3a8
commit 91420c0d8d

View File

@ -1131,6 +1131,8 @@ static bool CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTileTable
}
} else {
if (!EnsureNoVehicle(cur_tile)) return false;
if (MayHaveBridgeAbove(cur_tile) && IsBridgeAbove(cur_tile)) return false;
IndustyBehaviour ind_behav = GetIndustrySpec(type)->behaviour;
if (ind_behav & INDUSTRYBEH_BUILT_ONWATER) {