Feature #2237 ยป 0071-adv_unit_execute_path-Use-unit_is_alive.patch
| server/advisors/advgoto.c | ||
|---|---|---|
|
} else {
|
||
|
(void) adv_unit_move(punit, ptile);
|
||
|
}
|
||
|
if (!game_unit_by_number(id)) {
|
||
|
if (!unit_is_alive(id)) {
|
||
|
/* Died... */
|
||
|
return FALSE;
|
||
|
}
|
||