summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorTomer Shalev <shalev.tomer@gmail.com>2010-03-28 16:36:30 +0000
committerTomer Shalev <shalev.tomer@gmail.com>2010-03-28 16:36:30 +0000
commit704eb8adeeeba57fcab99934ff454aa77f3756e0 (patch)
tree8ce57141f8731a94adc864faa46f3d67e631cc7e /apps
parentf04ee9436c5df1559bc2e7984652212ee36ebf6c (diff)
downloadrockbox-704eb8adeeeba57fcab99934ff454aa77f3756e0.tar.gz
rockbox-704eb8adeeeba57fcab99934ff454aa77f3756e0.tar.bz2
rockbox-704eb8adeeeba57fcab99934ff454aa77f3756e0.zip
Brickmania: Don't use hard coded value
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25372 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/brickmania.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index f9d9b653a0..ae52babdaa 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -1789,7 +1789,7 @@ static int brickmania_game_loop(void)
/* draw the fires */
for(k=0;k<used_fires;k++)
{
- rb->lcd_vline(INT3(fire[k].x_pos), INT3(fire[k].top),
+ rb->lcd_vline(INT3(fire[k].x_pos), INT3(fire[k].top),
INT3(fire[k].top + FIRE_LENGTH));
}
@@ -2002,7 +2002,7 @@ static int brickmania_game_loop(void)
ball[used_balls].tempy=0;
ball[used_balls].tempx=0;
ball[used_balls].pos_y=ON_PAD_POS_Y;
- ball[used_balls].pos_x=pad_pos_x+(pad_width/2)-2;
+ ball[used_balls].pos_x=pad_pos_x+(pad_width/2)-HALFBALL;
k--;
continue;