Project

General

Profile

Bug #1766 » 0027-handle_unit_change_activity_real-Clear-goto_tile-lat.patch

S3_3, S3_2 - Marko Lindqvist, 11/23/2025 10:04 PM

View differences:

server/unithand.c
adv_unit_new_task(punit, AUT_NONE, NULL);
}
punit->goto_tile = NULL;
if (activity == ACTIVITY_GOTO) {
/* Don't permit a client to set a unit's activity to ACTIVITY_GOTO.
* Setting ACTIVITY_GOTO from the client results in a unit indicating
......
return;
}
punit->goto_tile = NULL;
/* The activity can now be set. */
unit_activity_handling_targeted(punit, activity, &activity_target,
trigger_action);
(2-2/2)