diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/brickmania.c | 9 |
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) | |||
1589 | rght_brick.p2.y = brick[bnum].powertop + BRICK_HEIGHT; | 1589 | rght_brick.p2.y = brick[bnum].powertop + BRICK_HEIGHT; |
1590 | 1590 | ||
1591 | /* Check if any of the active fires hit a brick */ | 1591 | /* Check if any of the active fires hit a brick */ |
1592 | if (pad_type == SHOOTER) | 1592 | for (k=0;k<30;k++) |
1593 | { | 1593 | { |
1594 | for (k=0;k<30;k++) | 1594 | if(fire[k].top > 0) |
1595 | { | 1595 | { |
1596 | /* Use misc_line to check if fire hit brick */ | 1596 | /* Use misc_line to check if fire hit brick */ |
1597 | misc_line.p1.x = fire[k].x_pos; | 1597 | misc_line.p1.x = fire[k].x_pos; |
@@ -1601,8 +1601,7 @@ static int brickmania_game_loop(void) | |||
1601 | misc_line.p2.y = fire[k].top + SPEED_FIRE; | 1601 | misc_line.p2.y = fire[k].top + SPEED_FIRE; |
1602 | 1602 | ||
1603 | /* If the fire hit the brick take care of it */ | 1603 | /* If the fire hit the brick take care of it */ |
1604 | if (fire[k].top > 0 && | 1604 | if (check_lines(&misc_line, &bot_brick, |
1605 | check_lines(&misc_line, &bot_brick, | ||
1606 | &pt_hit)) | 1605 | &pt_hit)) |
1607 | { | 1606 | { |
1608 | score+=13; | 1607 | score+=13; |
@@ -1612,7 +1611,7 @@ static int brickmania_game_loop(void) | |||
1612 | } | 1611 | } |
1613 | } | 1612 | } |
1614 | } | 1613 | } |
1615 | 1614 | ||
1616 | /* Draw the brick */ | 1615 | /* Draw the brick */ |
1617 | rb->lcd_bitmap_part(brickmania_bricks,0, | 1616 | rb->lcd_bitmap_part(brickmania_bricks,0, |
1618 | INT3(BRICK_HEIGHT)*brick[bnum].color, | 1617 | INT3(BRICK_HEIGHT)*brick[bnum].color, |