1
0
Fork 0
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:
Tomer Shalev 2010-04-20 08:38:53 +00:00
parent 62562f1cdd
commit 4761efa573

View file

@ -2031,7 +2031,7 @@ static int brickmania_game_loop(void)
if (check_lines(&misc_line, &screen_edge, &pt_hit)) if (check_lines(&misc_line, &screen_edge, &pt_hit))
{ {
/* Reverse direction */ /* Reverse direction */
ball[k].speedx = -ball[k].speedx; ball[k].speedx = abs(ball[k].speedx);
/* Re-position ball in gameboard */ /* Re-position ball in gameboard */
ball[k].tempy = pt_hit.y; 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)) if (check_lines(&misc_line, &screen_edge, &pt_hit))
{ {
/* Reverse direction */ /* Reverse direction */
ball[k].speedx = -ball[k].speedx; ball[k].speedx = -abs(ball[k].speedx);
/* Re-position ball in gameboard */ /* Re-position ball in gameboard */
ball[k].tempy = pt_hit.y; ball[k].tempy = pt_hit.y;