summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ball.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ball.c b/src/ball.c
index 2a2c721..3230628 100644
--- a/src/ball.c
+++ b/src/ball.c
@@ -80,6 +80,8 @@ void
db_balls_move(struct db_ball *ball)
{
if (ball->sr == 0) {
+ ball->x += cos(ball->a * (M_PI / 180));
+ ball->y -= sin(ball->a * (M_PI / 180));
} else {
ball->a += ball->d * ball->s;
ball->x = ball->cx + cos(ball->a * (M_PI / 180)) * ball->sr;