summaryrefslogtreecommitdiff
path: root/apps/plugins/brickmania.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r--apps/plugins/brickmania.c5
1 files changed, 2 insertions, 3 deletions
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;
}
}
}