src/industry_cmd.cpp
changeset 7216 2bb13ff061b1
parent 7212 5d99296fb545
child 7227 76ebda957d0e
equal deleted inserted replaced
7215:7f90af37655d 7216:2bb13ff061b1
  1189 			const IndustryTileSpec *its = GetIndustryTileSpec(it->gfx);
  1189 			const IndustryTileSpec *its = GetIndustryTileSpec(it->gfx);
  1190 			IndustyBehaviour ind_behav = GetIndustrySpec(type)->behaviour;
  1190 			IndustyBehaviour ind_behav = GetIndustrySpec(type)->behaviour;
  1191 
  1191 
  1192 			if (HASBIT(its->callback_flags, CBM_INDT_SHAPE_CHECK)) {
  1192 			if (HASBIT(its->callback_flags, CBM_INDT_SHAPE_CHECK)) {
  1193 				if (custom_shape_check != NULL) *custom_shape_check = true;
  1193 				if (custom_shape_check != NULL) *custom_shape_check = true;
  1194 				if (!PerformIndustryTileSlopeCheck(cur_tile, its, it->gfx)) return false;
  1194 				if (!PerformIndustryTileSlopeCheck(cur_tile, its, type, it->gfx)) return false;
  1195 			} else {
  1195 			} else {
  1196 				if (ind_behav & INDUSTRYBEH_BUILT_ONWATER) {
  1196 				if (ind_behav & INDUSTRYBEH_BUILT_ONWATER) {
  1197 					/* As soon as the tile is not water, bail out.
  1197 					/* As soon as the tile is not water, bail out.
  1198 					* But that does not mean the search is over.  You have
  1198 					* But that does not mean the search is over.  You have
  1199 					* to make sure every tile of the industry will be only water*/
  1199 					* to make sure every tile of the industry will be only water*/