src/industry_cmd.cpp
changeset 7758 17ad53748c7b
parent 7757 3e63b119a5bf
child 7760 d10e2e25cd5f
equal deleted inserted replaced
7757:3e63b119a5bf 7758:17ad53748c7b
  1219 			if (!IsTileType(cur_tile, MP_WATER) ||
  1219 			if (!IsTileType(cur_tile, MP_WATER) ||
  1220 					GetTileSlope(cur_tile, NULL) != SLOPE_FLAT) {
  1220 					GetTileSlope(cur_tile, NULL) != SLOPE_FLAT) {
  1221 				return false;
  1221 				return false;
  1222 			}
  1222 			}
  1223 		} else {
  1223 		} else {
  1224 			if (!EnsureNoVehicle(cur_tile)) return false;
  1224 			if (!EnsureNoVehicleOnGround(cur_tile)) return false;
  1225 			if (MayHaveBridgeAbove(cur_tile) && IsBridgeAbove(cur_tile)) return false;
  1225 			if (MayHaveBridgeAbove(cur_tile) && IsBridgeAbove(cur_tile)) return false;
  1226 
  1226 
  1227 			const IndustryTileSpec *its = GetIndustryTileSpec(gfx);
  1227 			const IndustryTileSpec *its = GetIndustryTileSpec(gfx);
  1228 
  1228 
  1229 			IndustryBehaviour ind_behav = GetIndustrySpec(type)->behaviour;
  1229 			IndustryBehaviour ind_behav = GetIndustrySpec(type)->behaviour;