From d62d5c78bf36cbcb7dcc05256a88cd1720b32cde Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Mon, 2 Mar 2026 14:38:03 +0100 Subject: [PATCH] fix bug where interactive movement was using the fast move implementation instead of the interactive one --- src/input_handler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/input_handler.cpp b/src/input_handler.cpp index 8183beb..17f7733 100644 --- a/src/input_handler.cpp +++ b/src/input_handler.cpp @@ -278,7 +278,7 @@ auto input_handler::toggle_camera_projection() const -> void auto input_handler::move_block_nor() -> void { const puzzle& current = state.get_current_state(); - const std::optional& next = current.try_move_block_at_fast(sel_x, sel_y, nor); + const std::optional& next = current.try_move_block_at(sel_x, sel_y, nor); if (!next) { return; } @@ -290,7 +290,7 @@ auto input_handler::move_block_nor() -> void auto input_handler::move_block_wes() -> void { const puzzle& current = state.get_current_state(); - const std::optional& next = current.try_move_block_at_fast(sel_x, sel_y, wes); + const std::optional& next = current.try_move_block_at(sel_x, sel_y, wes); if (!next) { return; } @@ -302,7 +302,7 @@ auto input_handler::move_block_wes() -> void auto input_handler::move_block_sou() -> void { const puzzle& current = state.get_current_state(); - const std::optional& next = current.try_move_block_at_fast(sel_x, sel_y, sou); + const std::optional& next = current.try_move_block_at(sel_x, sel_y, sou); if (!next) { return; } @@ -314,7 +314,7 @@ auto input_handler::move_block_sou() -> void auto input_handler::move_block_eas() -> void { const puzzle& current = state.get_current_state(); - const std::optional& next = current.try_move_block_at_fast(sel_x, sel_y, eas); + const std::optional& next = current.try_move_block_at(sel_x, sel_y, eas); if (!next) { return; }