mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-01 20:03:26 +00:00
(svn r10140) -Fix [FS#867]: an industry could overbuild a bridge.
This commit is contained in:
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
Block a user