summaryrefslogtreecommitdiff
path: root/src/newgrf_industrytiles.cpp
diff options
context:
space:
mode:
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;
}