From a090b7878a6383b585629bd732066dbdb8214361 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 24 Apr 2008 20:38:57 +0200 Subject: [PATCH] Permit ships to assault the sector they're in Ships still have to be in a sea sector to assault an adjacent sector. --- src/lib/subs/attsub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/subs/attsub.c b/src/lib/subs/attsub.c index ef160d4f..ab750392 100644 --- a/src/lib/subs/attsub.c +++ b/src/lib/subs/attsub.c @@ -449,6 +449,7 @@ att_abort(int combat_mode, struct combat *off, struct combat *def) if (att_get_combat(off, 0) < 0) return abort_attack(); if (off->type == EF_SHIP && + !(off->x == def->x && off->y == def->y) && (!getsect(off->x, off->y, §) || sect.sct_type != SCT_WATER)) { pr("%s can not %s from that far inland!\n",