src/industry_cmd.cpp
changeset 8027 80ddda328596
parent 8018 03b60ab13605
child 8073 42007d9c81bb
equal deleted inserted replaced
8026:269979f5319d 8027:80ddda328596
  1194 			}
  1194 			}
  1195 		} else {
  1195 		} else {
  1196 			if (!EnsureNoVehicle(cur_tile)) return false;
  1196 			if (!EnsureNoVehicle(cur_tile)) return false;
  1197 			if (MayHaveBridgeAbove(cur_tile) && IsBridgeAbove(cur_tile)) return false;
  1197 			if (MayHaveBridgeAbove(cur_tile) && IsBridgeAbove(cur_tile)) return false;
  1198 
  1198 
  1199 			const IndustryTileSpec *its = GetIndustryTileSpec(it->gfx);
  1199 			const IndustryTileSpec *its = GetIndustryTileSpec(gfx);
       
  1200 
  1200 			IndustyBehaviour ind_behav = GetIndustrySpec(type)->behaviour;
  1201 			IndustyBehaviour ind_behav = GetIndustrySpec(type)->behaviour;
  1201 
  1202 
  1202 			if (HASBIT(its->callback_flags, CBM_INDT_SHAPE_CHECK)) {
  1203 			if (HASBIT(its->callback_flags, CBM_INDT_SHAPE_CHECK)) {
  1203 				if (custom_shape_check != NULL) *custom_shape_check = true;
  1204 				if (custom_shape_check != NULL) *custom_shape_check = true;
  1204 				if (!PerformIndustryTileSlopeCheck(cur_tile, its, type, gfx)) return false;
  1205 				if (!PerformIndustryTileSlopeCheck(cur_tile, its, type, gfx)) return false;