From 66a8768bb0655a2924954b3e8aa8f845066368d5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 25 Mar 2021 17:48:12 -0400 Subject: ball: Change data types --- (limited to 'src') diff --git a/src/ball.c b/src/ball.c index 60ebc74..7fd7660 100644 --- a/src/ball.c +++ b/src/ball.c @@ -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; diff --git a/src/ball.h b/src/ball.h index 4f36dc2..9607f81 100644 --- a/src/ball.h +++ b/src/ball.h @@ -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, -- cgit v0.9.1