diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-03 18:22:32 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-04-04 00:14:45 +0200 |
commit | 6a6ea720da9bd265d2c636500f2915a0d75bb2af (patch) | |
tree | ed79f4ac27aebe6b7b04d09246624fb5ca215ef4 /main | |
parent | 5e0008adc0019e2d769f3b274d1cf0c120c0b020 (diff) |
fix cursor location on chunks with Y < 0
That's one evil typo.
Diffstat (limited to 'main')
-rw-r--r-- | main/projection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/projection.cpp b/main/projection.cpp index 8572d2de..8b32777e 100644 --- a/main/projection.cpp +++ b/main/projection.cpp @@ -9,7 +9,7 @@ global_coords main_impl::pixel_to_tile(Vector2d position) const noexcept { auto vec = pixel_to_tile_(position); auto vec_ = Math::floor(vec); - return { (int32_t)vec_.x(), (int32_t)vec.y(), 0 }; + return { (int32_t)vec_.x(), (int32_t)vec_.y(), 0 }; } Vector2d main_impl::pixel_to_tile_(Vector2d position) const noexcept |