From e77dc91b5d3e6a5181776a81cee2c3164c7b3cc9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 17 Mar 2024 22:49:09 +0100 Subject: ddd --- editor/camera.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editor') diff --git a/editor/camera.cpp b/editor/camera.cpp index ce94d5e1..34f02e51 100644 --- a/editor/camera.cpp +++ b/editor/camera.cpp @@ -84,9 +84,9 @@ object_id app::get_object_colliding_with_cursor() constexpr auto m = TILE_SIZE2 * Vector2(1- eps, 1- eps); const auto tile_ = Vector2(M->pixel_to_tile_(Vector2d(pixel))); const auto curchunk = Vector2(tile.chunk()), curtile = Vector2(tile.local()); - const auto subpixel_ = Math::fmod(tile_, 1.f); - const auto subpixel = m * Vector2(curchunk[0] < 0 ? 1 + subpixel_[0] : subpixel_[0], - curchunk[1] < 0 ? 1 + subpixel_[1] : subpixel_[1]); + const auto subpixelʹ = Math::fmod(tile_, 1.f); + const auto subpixel = m * Vector2(curchunk[0] < 0 ? 1 + subpixelʹ[0] : subpixelʹ[0], + curchunk[1] < 0 ? 1 + subpixelʹ[1] : subpixelʹ[1]); for (int16_t y = miny; y <= maxy; y++) for (int16_t x = minx; x <= maxx; x++) { -- cgit v1.2.3