equal
deleted
inserted
replaced
335 static Foundation GetFoundation_Industry(TileIndex tile, Slope tileh) |
335 static Foundation GetFoundation_Industry(TileIndex tile, Slope tileh) |
336 { |
336 { |
337 IndustryGfx gfx = GetIndustryGfx(tile); |
337 IndustryGfx gfx = GetIndustryGfx(tile); |
338 |
338 |
339 /* For NewGRF industry tiles we might not be drawing a foundation. We need to |
339 /* For NewGRF industry tiles we might not be drawing a foundation. We need to |
340 * account for this, otherwise we might be applying a FOUNDATION_LEVELED |
340 * account for this, as other structures should |
341 * on a steep slope which is not allowed. Furthermore other structures should |
|
342 * draw the wall of the foundation in this case. |
341 * draw the wall of the foundation in this case. |
343 */ |
342 */ |
344 if (gfx >= NEW_INDUSTRYTILEOFFSET) { |
343 if (gfx >= NEW_INDUSTRYTILEOFFSET) { |
345 const IndustryTileSpec *indts = GetIndustryTileSpec(gfx); |
344 const IndustryTileSpec *indts = GetIndustryTileSpec(gfx); |
346 if (indts->grf_prop.spritegroup != NULL && HasBit(indts->callback_flags, CBM_INDT_DRAW_FOUNDATIONS)) { |
345 if (indts->grf_prop.spritegroup != NULL && HasBit(indts->callback_flags, CBM_INDT_DRAW_FOUNDATIONS)) { |