Project

General

Profile

Bug #2374 » 0034-Fix-sending-explanations-about-failed-actions.patch

S3_3, S3_2 - Marko Lindqvist, 10/16/2026 03:14 PM

View differences:

server/unithand.c
} else { \
illegal_action(pplayer, actor_unit, action_type, \
pcity ? city_owner(pcity) : NULL, NULL, pcity, NULL, \
TRUE, requester); \
REQEST_PLAYER_INITIATED, requester); \
}
#define ACTION_PERFORM_UNIT_SELF(action, actor, action_performer) \
......
} else { \
illegal_action(pplayer, actor_unit, action_type, \
unit_owner(actor_unit), NULL, NULL, actor_unit, \
TRUE, requester); \
REQEST_PLAYER_INITIATED, requester); \
}
#define ACTION_PERFORM_UNIT_UNIT(action, actor, target, action_performer) \
......
} else { \
illegal_action(pplayer, actor_unit, action_type, \
punit ? unit_owner(punit) : NULL, NULL, NULL, punit, \
TRUE, requester); \
REQEST_PLAYER_INITIATED, requester); \
}
#define ACTION_PERFORM_UNIT_STACK(action, actor, target, action_performer)\
......
} else { \
illegal_action(pplayer, actor_unit, action_type, \
NULL, target_tile, NULL, NULL, \
TRUE, requester); \
REQEST_PLAYER_INITIATED, requester); \
}
#define ACTION_PERFORM_UNIT_TILE(action, actor, target, action_performer) \
......
illegal_action(pplayer, actor_unit, action_type, \
target_tile ? tile_owner(target_tile) : NULL, \
target_tile, NULL, NULL, \
TRUE, requester); \
REQEST_PLAYER_INITIATED, requester); \
}
#define ACTION_PERFORM_UNIT_EXTRAS(action, actor, target, action_performer)\
......
illegal_action(pplayer, actor_unit, action_type, \
target_tile ? target_tile->extras_owner : NULL, \
target_tile, NULL, NULL, \
TRUE, requester); \
REQEST_PLAYER_INITIATED, requester); \
}
#define ACTION_PERFORM_UNIT_ANY(paction, actor, \
(2-2/2)