summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-04 11:28:36 +0000
committerrubidium <rubidium@openttd.org>2007-11-04 11:28:36 +0000
commit91af1d6bca5139b76cab17624334bf68af5bff38 (patch)
treec3bd18dd73955872de2d5fc6a1d91cd661dff98c
parent56e6282f2f56d741634e30bba86fcfbd941bc285 (diff)
downloadopenttd-91af1d6bca5139b76cab17624334bf68af5bff38.tar.xz
(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'.
-rw-r--r--src/newgrf_industrytiles.cpp4
1 files changed, 3 insertions, 1 deletions
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;
}