mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r11645) -Fix (r8128): station ground tiles may have transparency or company colour
This commit is contained in:
parent
926fe5c9e9
commit
78fd9216f2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user