(svn r11720) -Codechange: [NewGRF] Add support for bit 30 of station tile layouts; forcing a sprite to always be opaque.
This commit is contained in:
@@ -950,6 +950,10 @@ 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_pal, 14)) {
|
||||
ClrBit(dts->ground_pal, 14);
|
||||
SetBit(dts->ground_sprite, SPRITE_MODIFIER_OPAQUE);
|
||||
}
|
||||
if (HasBit(dts->ground_sprite, 15)) {
|
||||
ClrBit(dts->ground_sprite, 15);
|
||||
SetBit(dts->ground_sprite, PALETTE_MODIFIER_COLOR);
|
||||
@@ -981,6 +985,10 @@ static bool StationChangeInfo(uint stid, int numinfo, int prop, byte **bufp, int
|
||||
ClrBit(dtss->pal, 15);
|
||||
SetBit(dtss->image, SPRITE_MODIFIER_USE_OFFSET);
|
||||
}
|
||||
if (HasBit(dtss->pal, 14)) {
|
||||
ClrBit(dtss->pal, 14);
|
||||
SetBit(dtss->image, SPRITE_MODIFIER_OPAQUE);
|
||||
}
|
||||
|
||||
if (HasBit(dtss->image, 15)) {
|
||||
ClrBit(dtss->image, 15);
|
||||
|
Reference in New Issue
Block a user