diff options
Diffstat (limited to 'src/ball.c')
-rw-r--r-- | src/ball.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -84,8 +84,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)); + ball->x += cos(ball->a * (M_PI / 180)) * ball->s; + ball->y += sin(ball->a * (M_PI / 180)) * ball->s; } else { ball->a = fmod(ball->a + ball->d * ball->s, 360); ball->x = ball->cx + cos(ball->a * (M_PI / 180)) * ball->sr; |