Brickmania: Fix bogus fires
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25690 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5c7a76d596
commit
dd8b40701e
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue