diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ball.c | 12 | ||||
-rw-r--r-- | src/ball.h | 2 |
2 files changed, 7 insertions, 7 deletions
@@ -23,18 +23,18 @@ #include "output.h" struct db_ball { - int x; - int y; + double x; + double y; int r; - int a; + double a; int d; - double sr; - int s; + int sr; + double s; struct db_ball *next; }; struct db_ball * -db_ball_new(int x, int y, int r, int a, int d, double sr, int s, +db_ball_new(int x, int y, int r, int a, int d, int sr, double s, struct db_ball *prev) { struct db_ball *ball; @@ -22,7 +22,7 @@ struct db_ball; -struct db_ball *db_ball_new(int x, int y, int r, int a, int d, double sr, int s, +struct db_ball *db_ball_new(int x, int y, int r, int a, int d, int sr, double s, struct db_ball *prev); void db_balls_collisions(struct db_ball *ball_head); int db_balls_player_collisions(struct db_ball *ball_head, |