diff options
Diffstat (limited to 'src/ball.c')
-rw-r--r-- | src/ball.c | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -27,12 +27,15 @@ struct db_ball { int y; int r; int a; + int d; + double sr; int s; struct db_ball *next; }; struct db_ball * -db_ball_new(int x, int y, int r, int a, int s, struct db_ball *prev) +db_ball_new(int x, int y, int r, int a, int d, double sr, int s, + struct db_ball *prev) { struct db_ball *ball; @@ -42,11 +45,13 @@ db_ball_new(int x, int y, int r, int a, int s, struct db_ball *prev) return NULL; } - ball->x = x; - ball->y = y; - ball->r = r; - ball->a = a; - ball->s = s; + ball->x = x; + ball->y = y; + ball->r = r; + ball->a = a; + ball->d = d; + ball->sr = sr; + ball->s = s; if (prev != NULL) { prev->next = ball; |