diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ball.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |