(svn r10140) -Fix [FS#867]: an industry could overbuild a bridge.
authorrubidium
Wed, 13 Jun 2007 15:22:28 +0000
changeset 7389 d8bc6472130b
parent 7388 0ea10e15e891
child 7390 00eb344ff13f
(svn r10140) -Fix [FS#867]: an industry could overbuild a bridge.
src/industry_cmd.cpp
--- a/src/industry_cmd.cpp	Wed Jun 13 14:57:42 2007 +0000
+++ b/src/industry_cmd.cpp	Wed Jun 13 15:22:28 2007 +0000
@@ -1131,6 +1131,8 @@
 			}
 		} 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) {