summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-30 15:37:24 +0000
committerrubidium <rubidium@openttd.org>2007-09-30 15:37:24 +0000
commitc952f3d5eff35b04df91970e61ef1a50bac769ac (patch)
tree9d6645fc7cb04a12cc7cd64e6da6c25ff9707d9d
parent32c0c3a64484fded063838b49b21a939dcafed97 (diff)
downloadopenttd-c952f3d5eff35b04df91970e61ef1a50bac769ac.tar.xz
(svn r11187) -Fix: what holds for houses in r11149 also holds for industries.
-rw-r--r--src/newgrf_industrytiles.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp
index 521b545c7..22a50df8b 100644
--- a/src/newgrf_industrytiles.cpp
+++ b/src/newgrf_industrytiles.cpp
@@ -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 {