Changeset - r7656:8a3acdcc26d6
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-09-30 15:37:24
rubidium@openttd.org
(svn r11187) -Fix: what holds for houses in r11149 also holds for industries.
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_industrytiles.cpp
Show inline comments
 
@@ -169,14 +169,18 @@ void IndustryDrawTileLayout(const TileIn
 
	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 {
0 comments (0 inline, 0 general)