src/industry_cmd.cpp
changeset 6934 ec763aa1cab5
parent 6929 35899001a413
child 6938 37018cdc1ea3
equal deleted inserted replaced
6933:93e62a8e80bd 6934:ec763aa1cab5
  1159 		} else {
  1159 		} else {
  1160 			if (!EnsureNoVehicle(cur_tile)) return false;
  1160 			if (!EnsureNoVehicle(cur_tile)) return false;
  1161 			IndustyBehaviour ind_behav = GetIndustrySpec(type)->behaviour;
  1161 			IndustyBehaviour ind_behav = GetIndustrySpec(type)->behaviour;
  1162 
  1162 
  1163 			if (ind_behav & INDUSTRYBEH_BUILT_ONWATER) {
  1163 			if (ind_behav & INDUSTRYBEH_BUILT_ONWATER) {
  1164 				return IsClearWaterTile(cur_tile);
  1164 				/* As soon as the tile is not water, bail out.
       
  1165 				 * But that does not mean the search is over.  You have
       
  1166 				 * to make sure every tile of the industry will be only water*/
       
  1167 				if (!IsClearWaterTile(cur_tile)) return false;
  1165 			} else {
  1168 			} else {
  1166 				Slope tileh;
  1169 				Slope tileh;
  1167 
  1170 
  1168 				if (IsClearWaterTile(cur_tile)) return false;
  1171 				if (IsClearWaterTile(cur_tile)) return false;
  1169 
  1172