(svn r11645) -Fix (r8128): station ground tiles may have transparency or company colour

This commit is contained in:
glx 2007-12-16 17:50:09 +00:00
parent 3cee0abdba
commit 5e062d3f15

View File

@ -952,6 +952,14 @@ static bool StationChangeInfo(uint stid, int numinfo, int prop, byte **bufp, int
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;