From 3ee8897b9194bb77f291f0836d293097af5023e6 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 9 Aug 2022 17:44:43 +0300 Subject: [PATCH 48/48] Make single-step goto to behave like normal move See osdn #44496 Signed-off-by: Marko Lindqvist --- client/goto.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/goto.c b/client/goto.c index 8db0382906..429845b716 100644 --- a/client/goto.c +++ b/client/goto.c @@ -1898,6 +1898,12 @@ void send_goto_route(void) goto_last_order = ORDER_ACTION_MOVE; } + /* Handle single-step goto like single-step move. */ + if (goto_last_order == ORDER_LAST && path->length == 2 + && gui_options.popup_last_move_to_allied) { + goto_last_order = ORDER_ACTION_MOVE; + } + if (goto_last_order == ORDER_LAST) { send_goto_path(punit, path, NULL); } else if (path->length > 1 -- 2.35.1