diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/map.h | 2 | ||||
| -rw-r--r-- | include/math_helper.h | 2 |
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); |
