mirror of https://github.com/OpenTTD/OpenTTD
(svn r10140) -Fix [FS#867]: an industry could overbuild a bridge.
parent
a702f6b3a8
commit
91420c0d8d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue