From 4761efa57357f8f0f07f7b1cb192d7f905355a53 Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Tue, 20 Apr 2010 08:38:53 +0000 Subject: [PATCH] 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 --- apps/plugins/brickmania.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index bd37044a52..c36aa0ad9e 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -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;