Land units no longer sweep allied landmines

They don't hit them since commit fe372539, v4.3.27.  Sweeping was
forgotten then.

Closes #717591.
This commit is contained in:
Markus Armbruster 2012-06-11 17:02:53 +02:00
parent bf11d42c87
commit 0b7fba038a

View file

@ -549,10 +549,10 @@ lnd_sweep(struct emp_qelem *land_list, int verbose, int takemob,
continue;
}
getsect(llp->unit.land.lnd_x, llp->unit.land.lnd_y, &sect);
if (sect.sct_oldown == llp->unit.land.lnd_own) {
if (relations_with(sect.sct_oldown, actor) == ALLIED) {
if (verbose)
mpr(actor,
"%s is in a sector completely owned by you. Don't bother digging up mines there!\n",
"%s is in a sector completely owned by you or an ally. Don't bother digging up mines there!\n",
prland(&llp->unit.land));
continue;
}