From 0b7fba038aa6024fee58fb82a5e47934237f9cb5 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 11 Jun 2012 17:02:53 +0200 Subject: [PATCH] Land units no longer sweep allied landmines They don't hit them since commit fe372539, v4.3.27. Sweeping was forgotten then. Closes #717591. --- src/lib/subs/lndsub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/subs/lndsub.c b/src/lib/subs/lndsub.c index c5774bae..3d26d67e 100644 --- a/src/lib/subs/lndsub.c +++ b/src/lib/subs/lndsub.c @@ -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, §); - 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; }