(svn r11375) -Fix [FS#1397]: the industry recolour map was always applied when recolouring was turned on, instead of only applying it when the colour translation is '0'.

This commit is contained in:
rubidium 2007-11-04 11:28:36 +00:00
parent 56e6282f2f
commit 91af1d6bca

View File

@ -182,7 +182,9 @@ void IndustryDrawTileLayout(const TileInfo *ti, const SpriteGroup *group, byte r
if (IS_CUSTOM_SPRITE(image)) image += stage; if (IS_CUSTOM_SPRITE(image)) image += stage;
if (HASBIT(image, PALETTE_MODIFIER_COLOR)) { if (HASBIT(image, PALETTE_MODIFIER_COLOR)) {
pal = GENERAL_SPRITE_COLOR(rnd_color); if (pal == 0) {
pal = GENERAL_SPRITE_COLOR(rnd_color);
}
} else { } else {
pal = PAL_NONE; pal = PAL_NONE;
} }