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 | 0dc6ed160c113de8484140951c42b0666dc6017f (patch) | |
tree | e51a286444b80134291b3b91cd2a5852d985746d | |
parent | 46e531da725d7e39ff7b569b7ce2cdc68cf09e60 (diff) | |
download | openttd-0dc6ed160c113de8484140951c42b0666dc6017f.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; } |