Feature #940 ยป 0034-Unhardcode-wld.map-from-action_speculate_unit_on_sel.patch
common/actions.c | ||
---|---|---|
changes.
|
||
**************************************************************************/
|
||
struct act_prob
|
||
action_speculate_unit_on_self(action_id act_id,
|
||
action_speculate_unit_on_self(const struct civ_map *nmap,
|
||
action_id act_id,
|
||
const struct unit *actor,
|
||
const struct city *actor_home,
|
||
const struct tile *actor_tile,
|
||
... | ... | |
* current position rather than on actor_tile. Maybe this function should
|
||
* return ACTPROB_NOT_IMPLEMENTED when one of those is detected and no
|
||
* other requirement makes the action ACTPROB_IMPOSSIBLE? */
|
||
const struct civ_map *nmap = &(wld.map);
|
||
if (omniscient_cheat) {
|
||
if (is_action_enabled_unit_on_self_full(nmap, act_id,
|
||
actor, actor_home, actor_tile)) {
|
common/actions.h | ||
---|---|---|
const struct extra_type *target_extra);
|
||
struct act_prob
|
||
action_speculate_unit_on_self(action_id act_id,
|
||
action_speculate_unit_on_self(const struct civ_map *nmap,
|
||
action_id act_id,
|
||
const struct unit *actor,
|
||
const struct city *actor_home,
|
||
const struct tile *actor_tile,
|
server/advisors/autoworkers.c | ||
---|---|---|
ptile, target));
|
||
case ATK_SELF:
|
||
return action_prob_possible(action_speculate_unit_on_self(
|
||
paction->id,
|
||
nmap, paction->id,
|
||
punit, unit_home(punit), ptile,
|
||
omniscient_cheat));
|
||
case ATK_COUNT:
|