summaryrefslogtreecommitdiff
path: root/src/newgrf_industrytiles.cpp
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
commit464ee0a02ac8428feeb4aa52b52af0a1eda69f54 (patch)
treec3bd18dd73955872de2d5fc6a1d91cd661dff98c /src/newgrf_industrytiles.cpp
parente2c0f1faf75c1c81790f11c88f9ceee8d36916c0 (diff)
downloadopenttd-464ee0a02ac8428feeb4aa52b52af0a1eda69f54.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'.
Diffstat (limited to 'src/newgrf_industrytiles.cpp')
-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;
}