From 87e5053fdc53c10a077803c2b659320e874c31f5 Mon Sep 17 00:00:00 2001 From: Christian Kroll Date: Sat, 10 Apr 2010 13:53:48 +0000 Subject: [PATCH] removed unnecessary if-clause --- games/breakout/rebound.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/games/breakout/rebound.c b/games/breakout/rebound.c index 40cf00f..a0a7964 100644 --- a/games/breakout/rebound.c +++ b/games/breakout/rebound.c @@ -59,8 +59,6 @@ void rebound_tick(ball_t *ball) if (ball != NULL) { rbpos = (uint8_t) abs(ball->x / 256); - if (rbpos < 0) - rbpos = 0; if (rbpos > (NUM_COLS - REBOUND_SIZE)) rbpos = NUM_COLS - REBOUND_SIZE; rebound_draw();