Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Bug #874450 ยป 0009-dai_hunter_try_launch-respect-alight-rules.patch

Sveinung Kvilhaugsvik, 2020-05-20 08:16 PM

View differences:

ai/default/aihunt.c
/* server */
#include "citytools.h"
#include "srv_log.h"
#include "unithand.h"
#include "unittools.h"
/* server/advisors */
......
pf_map_destroy(pfm);
if (sucker) {
if (unit_transported(missile)) {
unit_transport_unload_send(missile);
struct unit *ptrans = unit_transport_get(missile);
if (is_action_enabled_unit_on_unit(ACTION_TRANSPORT_ALIGHT,
missile, ptrans)) {
unit_do_action(unit_owner(punit), punit->id, ptrans->id,
0, "", ACTION_TRANSPORT_ALIGHT);
}
}
missile->goto_tile = unit_tile(sucker);
if (dai_unit_goto(ait, missile, unit_tile(sucker))) {
/* We survived; did they? */
    (1-1/1)