forked from len0rd/rockbox
Yet another try at fixing "FS#10959 - Brickmania - Ball disappears"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25688 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
62562f1cdd
commit
4761efa573
1 changed files with 2 additions and 2 deletions
|
@ -2031,7 +2031,7 @@ static int brickmania_game_loop(void)
|
|||
if (check_lines(&misc_line, &screen_edge, &pt_hit))
|
||||
{
|
||||
/* Reverse direction */
|
||||
ball[k].speedx = -ball[k].speedx;
|
||||
ball[k].speedx = abs(ball[k].speedx);
|
||||
|
||||
/* Re-position ball in gameboard */
|
||||
ball[k].tempy = pt_hit.y;
|
||||
|
@ -2047,7 +2047,7 @@ static int brickmania_game_loop(void)
|
|||
if (check_lines(&misc_line, &screen_edge, &pt_hit))
|
||||
{
|
||||
/* Reverse direction */
|
||||
ball[k].speedx = -ball[k].speedx;
|
||||
ball[k].speedx = -abs(ball[k].speedx);
|
||||
|
||||
/* Re-position ball in gameboard */
|
||||
ball[k].tempy = pt_hit.y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue