mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 09:39:10 +00:00
(svn r11187) -Fix: what holds for houses in r11149 also holds for industries.
This commit is contained in:
@@ -169,14 +169,18 @@ void IndustryDrawTileLayout(const TileInfo *ti, const SpriteGroup *group, byte r
|
||||
SpriteID image = dts->ground_sprite;
|
||||
SpriteID pal = dts->ground_pal;
|
||||
|
||||
if (IS_CUSTOM_SPRITE(image)) image += stage;
|
||||
|
||||
if (GB(image, 0, SPRITE_WIDTH) != 0) DrawGroundSprite(image, pal);
|
||||
|
||||
foreach_draw_tile_seq(dtss, dts->seq) {
|
||||
if (GB(dtss->image, 0, SPRITE_WIDTH) == 0) continue;
|
||||
|
||||
image = dtss->image + stage;
|
||||
image = dtss->image;
|
||||
pal = dtss->pal;
|
||||
|
||||
if (IS_CUSTOM_SPRITE(image)) image += stage;
|
||||
|
||||
if (HASBIT(image, PALETTE_MODIFIER_COLOR)) {
|
||||
pal = GENERAL_SPRITE_COLOR(rnd_color);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user