mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(svn r7752) -Codechange: An off-by-one problem reduced the sprite limit by 1 whole sprite
This commit is contained in:
parent
bb6be2e3ee
commit
66c1abdd21
@ -1314,9 +1314,9 @@ enum Modifiers {
|
|||||||
* @see SpriteSetup */
|
* @see SpriteSetup */
|
||||||
enum SpriteMasks {
|
enum SpriteMasks {
|
||||||
///Maximum number of sprites that can be loaded at a given time.
|
///Maximum number of sprites that can be loaded at a given time.
|
||||||
MAX_SPRITES = (1 << SPRITE_WIDTH) - 1,
|
MAX_SPRITES = 1 << SPRITE_WIDTH,
|
||||||
///The mask to for the main sprite
|
///The mask to for the main sprite
|
||||||
SPRITE_MASK = MAX_SPRITES,
|
SPRITE_MASK = MAX_SPRITES - 1,
|
||||||
///The mask for the auxiliary sprite (the one that takes care of recoloring)
|
///The mask for the auxiliary sprite (the one that takes care of recoloring)
|
||||||
PALETTE_SPRITE_MASK = ((1 << PALETTE_SPRITE_WIDTH) - 1) << PALETTE_SPRITE_START,
|
PALETTE_SPRITE_MASK = ((1 << PALETTE_SPRITE_WIDTH) - 1) << PALETTE_SPRITE_START,
|
||||||
///Mask for the auxiliary sprites if it is locate in the LSBs
|
///Mask for the auxiliary sprites if it is locate in the LSBs
|
||||||
|
Loading…
Reference in New Issue
Block a user