From 6a6ea720da9bd265d2c636500f2915a0d75bb2af Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 3 Apr 2024 18:22:32 +0200 Subject: fix cursor location on chunks with Y < 0 That's one evil typo. --- main/projection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/projection.cpp') 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 -- cgit v1.2.3