Project

General

Profile

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

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

View differences:

server/unithand.c
adv_unit_new_task(punit, AUT_NONE, nullptr);
}
punit->goto_tile = nullptr;
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 = nullptr;
/* The activity can now be set. */
unit_activity_handling_targeted(punit, activity, &activity_target,
trigger_action);
(1-1/2)