diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-03-26 23:09:34 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-03-26 23:10:05 (EDT) |
commit | 2bac5f3298af1c09576cfaaa2b3bcce019d04e91 (patch) | |
tree | 9cdb960dd2386d178900069d36d94ee724aee120 | |
parent | 0710b7ace924b691e95eca41924be4acae7a015e (diff) | |
download | dodge-balls-2bac5f3298af1c09576cfaaa2b3bcce019d04e91.zip dodge-balls-2bac5f3298af1c09576cfaaa2b3bcce019d04e91.tar.gz dodge-balls-2bac5f3298af1c09576cfaaa2b3bcce019d04e91.tar.bz2 |
ball: Initialize other ball in collision loop
-rw-r--r-- | src/ball.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -100,7 +100,7 @@ db_balls_collisions(struct db_ball *ball) int col_x; int col_y; - for (; other != NULL; other = other->next) { + for (other = ball->next; other != NULL; other = other->next) { if (db_col_pt_cir_cir(ball->x, ball->y, ball->r, other->x, other->y, other->r, &col_x, &col_y)) { |