summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-07-18 01:57:06 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-07-18 01:57:06 +0000
commit8a1cda66f0dea643a2c9cf52c08570eb5fb0707c (patch)
tree6ffec8386b3005bd3011877b24865ee23b7a0b5f /apps/plugins
parent1c746e5b9e0b3e9e20e8003b2760ca6a7a16a9a2 (diff)
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
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/brickmania.c5
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)
#endif
}
+ /* Somewhere in here collision checking is done b/w ball and
+ * brick.
+ */
for(k=0;k<used_balls;k++) {
- if (ball[k].pos_y <160) {
+ if (ball[k].pos_y < PAD_POS_Y) {
if (brick[i*10+j].used==1) {
if ((ball[k].pos_x+ball[k].x+HALFBALL >=
brickx &&