Brickmania: Fix bogus fires

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25690 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2010-04-20 09:08:21 +00:00
parent 5c7a76d596
commit dd8b40701e

View file

@ -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;
}
}
}