changeset 8084:f0b9ed2487a0 draft

(svn r11645) -Fix (r8128): station ground tiles may have transparency or company colour
author glx <glx@openttd.org>
date Sun, 16 Dec 2007 17:50:09 +0000
parents e02014b06c7f
children b6bf6634fcca
files src/newgrf.cpp
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -952,6 +952,14 @@
 						ClrBit(dts->ground_pal, 15);
 						SetBit(dts->ground_sprite, SPRITE_MODIFIER_USE_OFFSET);
 					}
+					if (HasBit(dts->ground_sprite, 15)) {
+						ClrBit(dts->ground_sprite, 15);
+						SetBit(dts->ground_sprite, PALETTE_MODIFIER_COLOR);
+					}
+					if (HasBit(dts->ground_sprite, 14)) {
+						ClrBit(dts->ground_sprite, 14);
+						SetBit(dts->ground_sprite, PALETTE_MODIFIER_TRANSPARENT);
+					}
 
 					while (buf < *bufp + len) {
 						DrawTileSeqStruct *dtss;