From 82b270f9414540c447124842cb7e1180e3e58e58 Mon Sep 17 00:00:00 2001 From: Louis Moureaux Date: Mon, 8 Jul 2024 02:31:12 +0200 Subject: [PATCH] Automatically cancel the current activity in goto It's common to select sentried or fortified units and initiate a goto. Currently this requires a click on the units to unset any activity they may have. Do this automatically in the path finder. Closes #2272. --- common/path_finder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/path_finder.cpp b/common/path_finder.cpp index 6b29ce5b42..ec6d8a9864 100644 --- a/common/path_finder.cpp +++ b/common/path_finder.cpp @@ -101,6 +101,7 @@ bool vertex::comparable(const vertex &other) const */ void vertex::fill_probe(unit &probe) const { + probe.activity = ACTIVITY_IDLE; // Else it doesn't want to move. probe.tile = location; probe.transporter = loaded; probe.client.transported_by = loaded ? loaded->id : -1;