(svn r11187) -Fix: what holds for houses in r11149 also holds for industries.
authorrubidium
Sun, 30 Sep 2007 15:37:24 +0000
changeset 7656 2c4110e04e37
parent 7655 314256ffab9d
child 7657 2b55af55cc51
(svn r11187) -Fix: what holds for houses in r11149 also holds for industries.
src/newgrf_industrytiles.cpp
--- a/src/newgrf_industrytiles.cpp	Sun Sep 30 14:29:45 2007 +0000
+++ b/src/newgrf_industrytiles.cpp	Sun Sep 30 15:37:24 2007 +0000
@@ -169,14 +169,18 @@
 	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 {