summaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 56774af..c12d731 100644
--- a/src/game.c
+++ b/src/game.c
@@ -100,6 +100,10 @@ update(struct game *g)
update_paddle(&g->players[1]->paddle_h);
update_paddle(&g->players[1]->paddle_v);
+ for (b = g->balls_head; b != NULL; b = b->next) {
+ update_ball(b);
+ }
+
while (g->cur_balls < g->min_balls) {
b = new_ball(BALL_START_X_NORMAL, BALL_START_Y_NORMAL);
b->next = g->balls_head;