summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-06-15 01:53:43 +0000
committerbelugas <belugas@openttd.org>2007-06-15 01:53:43 +0000
commit402cf772f03cd8233ac6814e3392e98a08a32d46 (patch)
treee51a286444b80134291b3b91cd2a5852d985746d /src/industry_cmd.cpp
parent0e2978720d7e942c5a407adbde7e498d7a3c8654 (diff)
downloadopenttd-402cf772f03cd8233ac6814e3392e98a08a32d46.tar.xz
(svn r10163) -Fix(r8128): Industries had lost their random recoloring. A test was removed and is now reintroduced in another way.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 1ffb83070..1c4de08b5 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -280,6 +280,8 @@ static void DrawTile_Industry(TileInfo *ti)
if (HASBIT(_transparent_opt, TO_INDUSTRIES)) {
SETBIT(image, PALETTE_MODIFIER_TRANSPARENT);
pal = PALETTE_TO_TRANSPARENT;
+ } else if (HASBIT(image, PALETTE_MODIFIER_COLOR) && dits->building.pal == PAL_NONE) {
+ pal = GENERAL_SPRITE_COLOR(ind->random_color);
} else {
pal = dits->building.pal;
}