diff options
Diffstat (limited to 'src/game/gamecore.hpp')
| -rw-r--r-- | src/game/gamecore.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/gamecore.hpp b/src/game/gamecore.hpp index 5db5207b..5ff68ca7 100644 --- a/src/game/gamecore.hpp +++ b/src/game/gamecore.hpp @@ -194,7 +194,7 @@ public: #define min(a, b) ( a > b ? b : a) #define max(a, b) ( a > b ? a : b) -inline bool col_check_point(float x, float y) { return col_is_solid((int)x, (int)y) != 0; } +inline bool col_check_point(float x, float y) { return col_is_solid(round(x), round(y)) != 0; } inline bool col_check_point(vec2 p) { return col_check_point(p.x, p.y); } #endif |