|
@@ -290,40 +290,33 @@ static void DrawTile_Industry(TileInfo *
|
|
|
z = ti->z;
|
|
|
/* Add bricks below the industry? */
|
|
|
if (ti->tileh != SLOPE_FLAT) {
|
|
|
DrawFoundation(ti, ti->tileh);
|
|
|
z += TILE_HEIGHT;
|
|
|
}
|
|
|
|
|
|
DrawGroundSprite(image, pal);
|
|
|
|
|
|
/* Add industry on top of the ground? */
|
|
|
image = dits->building.sprite;
|
|
|
if (image != 0) {
|
|
|
if (HASBIT(_transparent_opt, TO_INDUSTRIES)) {
|
|
|
SETBIT(image, PALETTE_MODIFIER_TRANSPARENT);
|
|
|
pal = PALETTE_TO_TRANSPARENT;
|
|
|
} else if (HASBIT(image, PALETTE_MODIFIER_COLOR) && dits->building.pal == PAL_NONE) {
|
|
|
pal = GENERAL_SPRITE_COLOR(ind->random_color);
|
|
|
} else {
|
|
|
pal = dits->building.pal;
|
|
|
}
|
|
|
|
|
|
AddSortableSpriteToDraw(image, pal,
|
|
|
AddSortableSpriteToDraw(image,
|
|
|
(HASBIT(image, PALETTE_MODIFIER_COLOR) && dits->building.pal == PAL_NONE) ? GENERAL_SPRITE_COLOR(ind->random_color) : dits->building.pal,
|
|
|
ti->x + dits->subtile_x,
|
|
|
ti->y + dits->subtile_y,
|
|
|
dits->width + 1,
|
|
|
dits->height + 1,
|
|
|
dits->dz,
|
|
|
z);
|
|
|
z,
|
|
|
HASBIT(_transparent_opt, TO_INDUSTRIES));
|
|
|
|
|
|
if (HASBIT(_transparent_opt, TO_INDUSTRIES)) return;
|
|
|
}
|
|
|
|
|
|
{
|
|
|
int proc = dits->draw_proc - 1;
|
|
|
if (proc >= 0) _industry_draw_tile_procs[proc](ti);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
static uint GetSlopeZ_Industry(TileIndex tile, uint x, uint y)
|
|
|
{
|