summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-09 21:04:34 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-09 21:04:34 +0100
commitac4b9bd1ce461ecd2d54b8dbed633658b0431f8b (patch)
tree9246b6352b0ee70599b400f00c161a68d40b852e /include
parent1966263dd141a1c012a272a84af96206d68da55c (diff)
fix collision
Diffstat (limited to 'include')
-rw-r--r--include/map.h2
-rw-r--r--include/math_helper.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/map.h b/include/map.h
index 80772b1..7c0716d 100644
--- a/include/map.h
+++ b/include/map.h
@@ -62,7 +62,7 @@ tile get_tile_under_coords(platform_window* window, float x, float y);
float get_height_of_tile_under_coords(platform_window* window, float tocheckx, float tochecky);
int get_tile_height(platform_window* window);
int get_tile_width(platform_window* window);
-bool is_in_bounds(platform_window* window, float x, float y);
+bool is_in_bounds(float x, float y);
void draw_grid(platform_window* window);
map_info get_map_info(platform_window* window);
diff --git a/include/math_helper.h b/include/math_helper.h
index 1b84ebf..7040086 100644
--- a/include/math_helper.h
+++ b/include/math_helper.h
@@ -8,7 +8,7 @@
#include "map.h"
#define MAP_RENDER_DEPTH renderer->set_render_depth(1);
-#define BULLET_RENDER_DEPTH(_h) renderer->set_render_depth(4 + ceil(_h));
+#define BULLET_RENDER_DEPTH(_h) renderer->set_render_depth(5 + ceil(_h));
#define OBJECT_RENDER_DEPTH(_h) renderer->set_render_depth(5 + ceil(_h));
bool onSegment(vec2f p, vec2f q, vec2f r);