diff options
Diffstat (limited to 'src/collision.c')
-rw-r--r-- | src/collision.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/collision.c b/src/collision.c index 45462e5..7e77b0a 100644 --- a/src/collision.c +++ b/src/collision.c @@ -39,7 +39,8 @@ db_pt_in_rect(int x, int y, SDL_Rect *rect) } void -db_closest_pt_on_rect(int x, int y, SDL_Rect *rect, int *close_x, int *close_y) +db_closest_pt_on_rect(int x, int y, SDL_Rect *rect, + double *close_x, double *close_y) { *close_x = x; if (x < rect->x) { @@ -56,7 +57,8 @@ db_closest_pt_on_rect(int x, int y, SDL_Rect *rect, int *close_x, int *close_y) } int -db_col_cir_rect(int x, int y, int r, SDL_Rect *rect, int *col_x, int *col_y) +db_col_cir_rect(int x, int y, int r, SDL_Rect *rect, + double *col_x, double *col_y) { db_closest_pt_on_rect(x, y, rect, col_x, col_y); return (r * r) >= |