Browse Source

removed unnecessary if-clause

feature/2015
Christian Kroll 15 years ago
parent
commit
87e5053fdc
  1. 2
      games/breakout/rebound.c

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

Loading…
Cancel
Save