summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-12-18 03:37:28 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-12-18 03:37:28 +0000
commitfe452a0de38b3dfc5fa7d698e890cb234e635487 (patch)
treee69d248a0679b15122e59bab48383b6445ffe2b8 /apps/plugins/brickmania.c
parentb28141423e5ac675c7f9378a40584316ced082dc (diff)
Accept FS #10568 by Asael Reiter: Brickmania Lasers not working properly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24061 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index 5ea9ae7c60..52bfcd2727 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -1589,9 +1589,9 @@ static int brickmania_game_loop(void)
rght_brick.p2.y = brick[bnum].powertop + BRICK_HEIGHT;
/* Check if any of the active fires hit a brick */
- if (pad_type == SHOOTER)
+ for (k=0;k<30;k++)
{
- for (k=0;k<30;k++)
+ if(fire[k].top > 0)
{
/* Use misc_line to check if fire hit brick */
misc_line.p1.x = fire[k].x_pos;
@@ -1601,8 +1601,7 @@ static int brickmania_game_loop(void)
misc_line.p2.y = fire[k].top + SPEED_FIRE;
/* If the fire hit the brick take care of it */
- if (fire[k].top > 0 &&
- check_lines(&misc_line, &bot_brick,
+ if (check_lines(&misc_line, &bot_brick,
&pt_hit))
{
score+=13;
@@ -1612,7 +1611,7 @@ static int brickmania_game_loop(void)
}
}
}
-
+
/* Draw the brick */
rb->lcd_bitmap_part(brickmania_bricks,0,
INT3(BRICK_HEIGHT)*brick[bnum].color,