summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-01-02 18:19:56 +0000
committerpeter1138 <peter1138@openttd.org>2007-01-02 18:19:56 +0000
commit66c1abdd211a9f054009bfad9d43e54a59b0232b (patch)
treeba6f943875813348823f4a13bc37d9a9768de7eb
parentbb6be2e3ee966cfb682755ee832b814829da5bb9 (diff)
downloadopenttd-66c1abdd211a9f054009bfad9d43e54a59b0232b.tar.xz
(svn r7752) -Codechange: An off-by-one problem reduced the sprite limit by 1 whole sprite
-rw-r--r--table/sprites.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/sprites.h b/table/sprites.h
index 8e96d880a..071c5ddfb 100644
--- a/table/sprites.h
+++ b/table/sprites.h
@@ -1314,9 +1314,9 @@ enum Modifiers {
* @see SpriteSetup */
enum SpriteMasks {
///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
- SPRITE_MASK = MAX_SPRITES,
+ SPRITE_MASK = MAX_SPRITES - 1,
///The mask for the auxiliary sprite (the one that takes care of recoloring)
PALETTE_SPRITE_MASK = ((1 << PALETTE_SPRITE_WIDTH) - 1) << PALETTE_SPRITE_START,
///Mask for the auxiliary sprites if it is locate in the LSBs