summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-12-29 21:06:54 +0000
committerpeter1138 <peter1138@openttd.org>2007-12-29 21:06:54 +0000
commit06d578d07e6c1d0e0fa5ec2848b223a179410ed3 (patch)
treebf60d74800aa8f3a5e8803efc79333b30a8e6fb3 /src/newgrf.cpp
parente5e75bd8f8f7df43ff39f2cb15bd12d200f1131f (diff)
downloadopenttd-06d578d07e6c1d0e0fa5ec2848b223a179410ed3.tar.xz
(svn r11720) -Codechange: [NewGRF] Add support for bit 30 of station tile layouts; forcing a sprite to always be opaque.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index c70845f4e..42bd6088c 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -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);