From 0dc6ed160c113de8484140951c42b0666dc6017f Mon Sep 17 00:00:00 2001 From: belugas Date: Fri, 15 Jun 2007 01:53:43 +0000 Subject: (svn r10163) -Fix(r8128): Industries had lost their random recoloring. A test was removed and is now reintroduced in another way. --- src/industry_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3-70-g09d2