From 91af1d6bca5139b76cab17624334bf68af5bff38 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 4 Nov 2007 11:28:36 +0000 Subject: (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'. --- src/newgrf_industrytiles.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/newgrf_industrytiles.cpp b/src/newgrf_industrytiles.cpp index ae69591d5..6a28d350e 100644 --- a/src/newgrf_industrytiles.cpp +++ b/src/newgrf_industrytiles.cpp @@ -182,7 +182,9 @@ void IndustryDrawTileLayout(const TileInfo *ti, const SpriteGroup *group, byte r if (IS_CUSTOM_SPRITE(image)) image += stage; if (HASBIT(image, PALETTE_MODIFIER_COLOR)) { - pal = GENERAL_SPRITE_COLOR(rnd_color); + if (pal == 0) { + pal = GENERAL_SPRITE_COLOR(rnd_color); + } } else { pal = PAL_NONE; } -- cgit v1.2.3-70-g09d2