diff options
author | Robert Kukla <roolku@rockbox.org> | 2009-10-13 12:00:50 +0000 |
---|---|---|
committer | Robert Kukla <roolku@rockbox.org> | 2009-10-13 12:00:50 +0000 |
commit | ab58cdc0b375593f6143e8e455144bc4119e944b (patch) | |
tree | f066cb58c5667de3c4092798fa03a040b1cbd985 | |
parent | efeda72626cc5b46459f80b3ccb662d318c89d6a (diff) |
brickmania: There are only 9 powerups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23151 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/brickmania.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 347b167403..3f79f7c7d6 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -273,7 +273,8 @@ CONFIG_KEYPAD == SANSA_M200_PAD #define BRICK_HEIGHT FIXED3(BMPHEIGHT_brickmania_bricks/7) #define BRICK_WIDTH FIXED3(BMPWIDTH_brickmania_bricks) #define LEFTMARGIN ((GAMESCREEN_WIDTH-10*BRICK_WIDTH)/2) -#define POWERUP_HEIGHT FIXED3(BMPHEIGHT_brickmania_powerups/9) +#define NUMBER_OF_POWERUPS 9 +#define POWERUP_HEIGHT FIXED3(BMPHEIGHT_brickmania_powerups/NUMBER_OF_POWERUPS) #define POWERUP_WIDTH FIXED3(BMPWIDTH_brickmania_powerups) #define BALL FIXED3(BMPHEIGHT_brickmania_ball) #define HALFBALL (BALL / 2) @@ -1275,7 +1276,7 @@ void brick_hit(int brick_number) else { brick[brick_number].used=false; /* Was there a powerup on the brick? */ - if (brick[brick_number].power<10) { + if (brick[brick_number].power<NUMBER_OF_POWERUPS) { /* Activate the powerup */ brick[brick_number].poweruse = true; } |