File diff r8470:2c86b652d238 → r8471:0c8cd6eb92d6
src/industry_cmd.cpp
Show inline comments
 
@@ -1223,13 +1223,13 @@ static bool CheckIfIndustryTilesAreFree(
 

	
 
			const IndustryTileSpec *its = GetIndustryTileSpec(gfx);
 

	
 
			IndustryBehaviour ind_behav = GetIndustrySpec(type)->behaviour;
 

	
 
			/* Perform land/water check if not disabled */
 
			if (!HasBit(its->slopes_refused, 5) && ((IsWaterTile(cur_tile) || IsRiverTile(cur_tile)) == !(ind_behav & INDUSTRYBEH_BUILT_ONWATER))) return false;
 
			if (!HasBit(its->slopes_refused, 5) && (IsWaterTile(cur_tile) == !(ind_behav & INDUSTRYBEH_BUILT_ONWATER))) return false;
 

	
 
			if (HasBit(its->callback_flags, CBM_INDT_SHAPE_CHECK)) {
 
				custom_shape = true;
 
				if (!PerformIndustryTileSlopeCheck(tile, cur_tile, its, type, gfx, itspec_index)) return false;
 
			} else {
 
				Slope tileh = GetTileSlope(cur_tile, NULL);