What happens is that grey player has lost their port, so there is no port to return to for the canceled expedition. So, I'd suggest (pseudocode):
if (get_economy() == nullptr) { if (has_other_reachable_portdock()) { add_ship_to_reachable_portdocks_fleet(); } else { return; } }
do_cancel_expedition;
What happens is that grey player has lost their port, so there is no port to return to for the canceled expedition. So, I'd suggest (pseudocode):
if (get_economy() == nullptr) { reachable_ portdock( )) { ship_to_ reachable_ portdocks_ fleet() ;
if (has_other_
add_
} else {
return;
}
}
do_cancel_ expedition;