diff options
author | rubidium <rubidium@openttd.org> | 2007-11-04 11:28:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-04 11:28:36 +0000 |
commit | 91af1d6bca5139b76cab17624334bf68af5bff38 (patch) | |
tree | c3bd18dd73955872de2d5fc6a1d91cd661dff98c /src | |
parent | 56e6282f2f56d741634e30bba86fcfbd941bc285 (diff) | |
download | openttd-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'.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_industrytiles.cpp | 4 |
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; } |