summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-30 03:30:44 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-30 03:30:44 (EDT)
commit6069e79e7f2b7a0c2479096bec4cf839811fac8e (patch)
treeaafd62df7b858519c3f1315befc5d0752d06772c
parent508f37faa701c8ad0cf8d9271bd489ba9978e765 (diff)
downloaddodge-balls-6069e79e7f2b7a0c2479096bec4cf839811fac8e.zip
dodge-balls-6069e79e7f2b7a0c2479096bec4cf839811fac8e.tar.gz
dodge-balls-6069e79e7f2b7a0c2479096bec4cf839811fac8e.tar.bz2
ball: Improve convex corner collisions
This breaks concave collisions, however.
-rw-r--r--src/ball.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ball.c b/src/ball.c
index 7f8aa3d..99415cc 100644
--- a/src/ball.c
+++ b/src/ball.c
@@ -132,6 +132,7 @@ db_balls_collisions(struct db_ball *ball)
line_x2, line_y2,
&col_x, &col_y)){
_db_ball_bounce(ball, col_x, col_y);
+ break;
}
}
}