(svn r11375) -Fix [FS#1397]: the industry recolour map was always applied when recolouring was turned on, instead of only applying it when the colour translation is '0'.
authorrubidium
Sun, 04 Nov 2007 11:28:36 +0000
changeset 7825 88509e87fe7d
parent 7824 5a63d41b59ea
child 7826 4283314d07a3
(svn r11375) -Fix [FS#1397]: the industry recolour map was always applied when recolouring was turned on, instead of only applying it when the colour translation is '0'.
src/newgrf_industrytiles.cpp
--- a/src/newgrf_industrytiles.cpp	Sun Nov 04 00:08:57 2007 +0000
+++ b/src/newgrf_industrytiles.cpp	Sun Nov 04 11:28:36 2007 +0000
@@ -182,7 +182,9 @@
 		if (IS_CUSTOM_SPRITE(image)) image += stage;
 
 		if (HASBIT(image, PALETTE_MODIFIER_COLOR)) {
-			pal = GENERAL_SPRITE_COLOR(rnd_color);
+			if (pal == 0) {
+				pal = GENERAL_SPRITE_COLOR(rnd_color);
+			}
 		} else {
 			pal = PAL_NONE;
 		}