diff options
-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 && |