]> git.pond.sub.org Git - empserver/commitdiff
Permit ships to assault the sector they're in
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 24 Apr 2008 18:38:57 +0000 (20:38 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 28 Oct 2008 23:35:51 +0000 (19:35 -0400)
Ships still have to be in a sea sector to assault an adjacent sector.

src/lib/subs/attsub.c

index ef160d4ffc20c8df3f50e9c73f8119681b255385..ab750392de86a056c21a6f3180b6ea5a7cc1ee1e 100644 (file)
@@ -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) ||
             sect.sct_type != SCT_WATER)) {
            pr("%s can not %s from that far inland!\n",