(svn r10163) -Fix(r8128): Industries had lost their random recoloring. A test was removed and is now reintroduced in another way.
authorbelugas
Fri, 15 Jun 2007 01:53:43 +0000
changeset 6910 4e5e2247bf53
parent 6909 5cb622b3d46a
child 6911 295a78cc3769
(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
--- a/src/industry_cmd.cpp	Thu Jun 14 15:24:34 2007 +0000
+++ b/src/industry_cmd.cpp	Fri Jun 15 01:53:43 2007 +0000
@@ -280,6 +280,8 @@
 		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;
 		}