diff options
author | glx <glx@openttd.org> | 2007-12-16 17:50:09 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-12-16 17:50:09 +0000 |
commit | 5e062d3f1505d4fc4191ab48ea8463a474f5288a (patch) | |
tree | 02eafbc8db4d57b2df1413d298dc637cb676acf1 /src | |
parent | 3cee0abdbaf6c867ca71fec4700823f545556936 (diff) | |
download | openttd-5e062d3f1505d4fc4191ab48ea8463a474f5288a.tar.xz |
(svn r11645) -Fix (r8128): station ground tiles may have transparency or company colour
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 89c6b6112..e81c7e796 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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; |