diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-07-18 01:57:06 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-07-18 01:57:06 +0000 |
commit | 8a1cda66f0dea643a2c9cf52c08570eb5fb0707c (patch) | |
tree | 6ffec8386b3005bd3011877b24865ee23b7a0b5f | |
parent | 1c746e5b9e0b3e9e20e8003b2760ca6a7a16a9a2 (diff) | |
download | rockbox-8a1cda66f0dea643a2c9cf52c08570eb5fb0707c.tar.gz rockbox-8a1cda66f0dea643a2c9cf52c08570eb5fb0707c.zip |
Brickmania: Correct a bug in the ball/brick collision (large screens (640x480) did not collide with the bottom row of bricks)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21944 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/brickmania.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 30b4912c01..ca27df6298 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -1309,8 +1309,11 @@ int game_loop(void) | |||
1309 | #endif | 1309 | #endif |
1310 | } | 1310 | } |
1311 | 1311 | ||
1312 | /* Somewhere in here collision checking is done b/w ball and | ||
1313 | * brick. | ||
1314 | */ | ||
1312 | for(k=0;k<used_balls;k++) { | 1315 | for(k=0;k<used_balls;k++) { |
1313 | if (ball[k].pos_y <160) { | 1316 | if (ball[k].pos_y < PAD_POS_Y) { |
1314 | if (brick[i*10+j].used==1) { | 1317 | if (brick[i*10+j].used==1) { |
1315 | if ((ball[k].pos_x+ball[k].x+HALFBALL >= | 1318 | if ((ball[k].pos_x+ball[k].x+HALFBALL >= |
1316 | brickx && | 1319 | brickx && |