diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-17 22:49:09 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-19 14:32:18 +0100 |
| commit | e77dc91b5d3e6a5181776a81cee2c3164c7b3cc9 (patch) | |
| tree | bd6cb2c4d19fbce3e86e8e6e068deddc05058e8e /editor | |
| parent | 9409f4669a6df6d71a036ff5d4c29d29255bf08a (diff) | |
ddd
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/camera.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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++) { |
