summaryrefslogtreecommitdiff
path: root/src/table
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
commit6da72ec156305de77277fbb834d0bd3905254fd8 (patch)
treebf60d74800aa8f3a5e8803efc79333b30a8e6fb3 /src/table
parent445a733eb60eb53307bdae94c9ccb83a3007e32d (diff)
downloadopenttd-6da72ec156305de77277fbb834d0bd3905254fd8.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/table')
-rw-r--r--src/table/sprites.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/table/sprites.h b/src/table/sprites.h
index 02d931df3..16fc900d7 100644
--- a/src/table/sprites.h
+++ b/src/table/sprites.h
@@ -1415,6 +1415,7 @@ enum SpriteSetup {
TRANSPARENT_BIT = 31, ///< toggles transparency in the sprite
RECOLOR_BIT = 30, ///< toggles recoloring in the sprite
OFFSET_BIT = 29,
+ OPAQUE_BIT = 28,
PALETTE_WIDTH = 24, ///< number of bits of the sprite containing the recolor palette
SPRITE_WIDTH = 24, ///< number of bits for the sprite number
@@ -1430,7 +1431,8 @@ enum SpriteSetup {
*/
enum Modifiers {
SPRITE_MODIFIER_USE_OFFSET = OFFSET_BIT,
- SPRITE_MODIFIER_OPAQUE = OFFSET_BIT,
+ /// Set when a sprite must not ever be displayed transparently
+ SPRITE_MODIFIER_OPAQUE = OPAQUE_BIT,
///when a sprite is to be displayed transparently, this bit needs to be set.
PALETTE_MODIFIER_TRANSPARENT = TRANSPARENT_BIT,
///this bit is set when a recoloring process is in action