changeset 6893:c72354b9828f draft

(svn r10140) -Fix [FS#867]: an industry could overbuild a bridge.
author rubidium <rubidium@openttd.org>
date Wed, 13 Jun 2007 15:22:28 +0000
parents 556994541424
children 930f97993990
files src/industry_cmd.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -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) {