diff options
author | frosch <frosch@openttd.org> | 2010-01-17 01:01:56 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-01-17 01:01:56 +0000 |
commit | d9d75c83d5b0839d335db453b4482fcaf306bac7 (patch) | |
tree | ad207b20db255982fe6d12d77b480c3d918ad5be /src/table/sprites.h | |
parent | 707cf045f8703700887757ecfa4e309b61e2fd4f (diff) | |
download | openttd-d9d75c83d5b0839d335db453b4482fcaf306bac7.tar.xz |
(svn r18842) -Codechange: Rename SPRITE_MODIFIER_USE_OFFSET to SPRITE_MODIFIER_CUSTOM_SPRITE, invert its meaning, and also use it for industry/house layouts instead of IS_CUSTOM_SPRITE().
Diffstat (limited to 'src/table/sprites.h')
-rw-r--r-- | src/table/sprites.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/table/sprites.h b/src/table/sprites.h index aa0a033a8..4198e8b8a 100644 --- a/src/table/sprites.h +++ b/src/table/sprites.h @@ -1419,7 +1419,7 @@ enum AnimCursors { enum SpriteSetup { TRANSPARENT_BIT = 31, ///< toggles transparency in the sprite RECOLOUR_BIT = 30, ///< toggles recolouring in the sprite - OFFSET_BIT = 29, + CUSTOM_BIT = 29, OPAQUE_BIT = 28, PALETTE_WIDTH = 24, ///< number of bits of the sprite containing the recolour palette @@ -1435,7 +1435,8 @@ enum SpriteSetup { * @see SpriteSetup */ enum Modifiers { - SPRITE_MODIFIER_USE_OFFSET = OFFSET_BIT, + /** Set when a sprite originates from an Action 1 */ + SPRITE_MODIFIER_CUSTOM_SPRITE = CUSTOM_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. */ |