From ab58cdc0b375593f6143e8e455144bc4119e944b Mon Sep 17 00:00:00 2001 From: Robert Kukla Date: Tue, 13 Oct 2009 12:00:50 +0000 Subject: brickmania: There are only 9 powerups git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23151 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/brickmania.c | 5 +++-- 1 file 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