diff options
author | belugas <belugas@openttd.org> | 2007-06-15 01:53:43 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-06-15 01:53:43 +0000 |
commit | 402cf772f03cd8233ac6814e3392e98a08a32d46 (patch) | |
tree | e51a286444b80134291b3b91cd2a5852d985746d | |
parent | 0e2978720d7e942c5a407adbde7e498d7a3c8654 (diff) | |
download | openttd-402cf772f03cd8233ac6814e3392e98a08a32d46.tar.xz |
(svn r10163) -Fix(r8128): Industries had lost their random recoloring. A test was removed and is now reintroduced in another way.
-rw-r--r-- | src/industry_cmd.cpp | 2 |
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; } |