Project

General

Profile

Bug #1028 » 0024-Make-action-selection-dialog-to-appear-on-airlift.patch

main, S3_2 - Marko Lindqvist, 10/29/2024 04:58 AM

View differences:

server/unittools.c
punit->action_decision_tile = NULL;
punit->action_decision_want = ACT_DEC_NOTHING;
if (!adj && action_tgt_city(punit, pdesttile, FALSE)) {
/* The unit can perform an action to the city at the destination tile.
* A long distance move (like an airlift) doesn't ask what action to
* perform before moving. Ask now. */
punit->action_decision_want = ACT_DEC_PASSIVE;
punit->action_decision_tile = pdesttile;
}
/* Claim ownership of fortress? */
if (conquer_extras_allowed
&& tile_has_claimable_base(pdesttile, unit_type_get(punit))) {
......
}
}
if (!adj && action_tgt_city(punit, pdesttile, FALSE)) {
/* The unit can perform an action to the city at the destination tile.
* A long distance move (like an airlift) doesn't ask what action to
* perform before moving. Ask now. */
punit->action_decision_want = ACT_DEC_PASSIVE;
punit->action_decision_tile = pdesttile;
}
/* Notifications of the move to the clients. */
if (adj) {
/* Special case: 'punit' is moving to adjacent position. Then we show
(1-1/2)