(svn r11645) -Fix (r8128): station ground tiles may have transparency or company colour
--- a/src/newgrf.cpp Sun Dec 16 15:38:51 2007 +0000
+++ b/src/newgrf.cpp Sun Dec 16 17:50:09 2007 +0000
@@ -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;