From 91420c0d8d63abc3b80fb4957d8d033f7b74c6bb Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 13 Jun 2007 15:22:28 +0000 Subject: (svn r10140) -Fix [FS#867]: an industry could overbuild a bridge. --- src/industry_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index c783d1681..1ffb83070 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -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) { -- cgit v1.2.3-70-g09d2