diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-20 21:21:30 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-20 21:21:30 +0200 |
commit | 22ce801e3501a2c38ae33b004614d7401dc87460 (patch) | |
tree | d714f56835f4b61f7013fe6ce2c28e3db14b3fcc /editor/tests | |
parent | 8ac55a6789a9ed7fdd16dfcbde6133948ad632fc (diff) |
a
Diffstat (limited to 'editor/tests')
-rw-r--r-- | editor/tests/path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/tests/path.cpp b/editor/tests/path.cpp index f6ebc1cb..7e79c46c 100644 --- a/editor/tests/path.cpp +++ b/editor/tests/path.cpp @@ -30,7 +30,7 @@ bool path_test::handle_mouse_click(app& a, const mouse_button_event& e, bool is_ { constexpr auto chunk_size = iTILE_SIZE2 * TILE_MAX_DIM; auto pt0 = C->position(); - auto vec = (pt->coord() - pt0.coord()) * iTILE_SIZE2 + chunk_size * 1; + auto vec = (pt->coord() - pt0.coord()) * iTILE_SIZE2 * 2 + chunk_size * 1; auto dist = (uint32_t)vec.length(); has_pending = true; @@ -40,7 +40,7 @@ bool path_test::handle_mouse_click(app& a, const mouse_button_event& e, bool is_ return true; } case mouse_button_right: - if (has_pending | has_result) + if (has_pending || has_result) { has_pending = has_result = false; pending = {}; |