diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-11-16 22:07:46 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-11-16 22:07:46 +0000 |
| commit | cff4feea6b0ee0249b6955c0783a302df77b82c4 (patch) | |
| tree | c81384f955ad057302935f55132aced39cb52d12 /src/game/gamecore.hpp | |
| parent | c7be15caeb57b3b7da7450de9de41af0dbbdf5cb (diff) | |
| download | zcatch-cff4feea6b0ee0249b6955c0783a302df77b82c4.tar.gz zcatch-cff4feea6b0ee0249b6955c0783a302df77b82c4.zip | |
fixed rounding errors in the character core causing it to favour certain directions
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 |