diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-03-25 17:48:12 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-03-25 17:48:12 (EDT) |
commit | 66a8768bb0655a2924954b3e8aa8f845066368d5 (patch) | |
tree | 25b17402a8e7febb26121781c5d9cebd65914c7c /src | |
parent | 07b748a79b811b74ae996fea3d279b7ccf901622 (diff) | |
download | dodge-balls-66a8768bb0655a2924954b3e8aa8f845066368d5.zip dodge-balls-66a8768bb0655a2924954b3e8aa8f845066368d5.tar.gz dodge-balls-66a8768bb0655a2924954b3e8aa8f845066368d5.tar.bz2 |
ball: Change data types
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, |