(svn r10140) -Fix [FS#867]: an industry could overbuild a bridge.
authorrubidium
Wed, 13 Jun 2007 15:22:28 +0000
changeset 6893 ccfe9df6410f
parent 6892 c23b5f195668
child 6894 721970ba51d0
(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) {