diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/brickmania.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index a4adcc29d0..13827edb53 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -2272,7 +2272,14 @@ static int brickmania_game_loop(void) | |||
2272 | for(k=0;k<used_balls;k++) | 2272 | for(k=0;k<used_balls;k++) |
2273 | { | 2273 | { |
2274 | if (game_state==ST_READY || ball[k].glue) | 2274 | if (game_state==ST_READY || ball[k].glue) |
2275 | { | ||
2275 | ball[k].pos_x+=dx; | 2276 | ball[k].pos_x+=dx; |
2277 | |||
2278 | if (ball[k].pos_x < HALFBALL) | ||
2279 | ball[k].pos_x = HALFBALL; | ||
2280 | else if (ball[k].pos_x > GAMESCREEN_WIDTH - HALFBALL) | ||
2281 | ball[k].pos_x = GAMESCREEN_WIDTH - HALFBALL; | ||
2282 | } | ||
2276 | } | 2283 | } |
2277 | } | 2284 | } |
2278 | } | 2285 | } |