From b23039ac966af5e83a66e1dcecf43583493febce Mon Sep 17 00:00:00 2001 From: AnonymusRaccoon Date: Fri, 3 Jan 2020 13:47:25 +0100 Subject: [PATCH] Now using floats instead of ints --- include/quadtree.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/quadtree.h b/include/quadtree.h index cd485fb..fef2de9 100644 --- a/include/quadtree.h +++ b/include/quadtree.h @@ -15,8 +15,8 @@ typedef struct quadtree quadtree; typedef struct qt_intrect { - int x; - int y; + float x; + float y; int h; int w; } qt_intrect; @@ -29,10 +29,10 @@ typedef struct qt_object typedef struct qt_collision { - int distance_left; - int distance_right; - int distance_top; - int distance_down; + float distance_left; + float distance_right; + float distance_top; + float distance_down; } qt_collision; struct quadtree