removed unnecessary if-clause

This commit is contained in:
Christian Kroll 2010-04-10 13:53:48 +00:00
parent 96939cf72d
commit 87e5053fdc
1 changed files with 0 additions and 2 deletions

View File

@ -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();