(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:
peter1138
2007-12-29 21:06:54 +00:00
parent 445a733eb6
commit 6da72ec156
4 changed files with 15 additions and 5 deletions

View File

@@ -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);