From dd8b40701ee4b4d12d162adf2bf153342f35d7ba Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Tue, 20 Apr 2010 09:08:21 +0000 Subject: Brickmania: Fix bogus fires git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25690 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/brickmania.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps') diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 2fda2d3ec0..bc446df179 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -1631,7 +1631,8 @@ static int brickmania_game_loop(void) j = (fire[k].x_pos - LEFTMARGIN) / BRICK_WIDTH; for (i=NUM_BRICKS_ROWS-1;i>=0;i--) { - + if (TOPMARGIN + i*BRICK_HEIGHT<=fire[k].top) + break; if (brick[i][j].used) { score += SCORE_FIRE_HIT_BRICK; @@ -1642,8 +1643,6 @@ static int brickmania_game_loop(void) k--; break; } - if (TOPMARGIN + i*BRICK_HEIGHT<=fire[k].top) - break; } } } -- cgit v1.2.3