Skip to content

Commit

Permalink
Automatically cancel the current activity in goto
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lmoureaux authored and jwrober committed Jul 8, 2024
1 parent 75f3bdd commit 82b270f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/path_finder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 82b270f

Please sign in to comment.