]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/assa.c
Update copyright notice
[empserver] / src / lib / commands / assa.c
index bc794ae7f5f787b7f39f019375acfb25e2ec70c2..8ceae90cdfc820956f745bbe54a6bd81cb4bc019 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2013, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2016, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -33,6 +33,7 @@
 
 #include <config.h>
 
+#include "chance.h"
 #include "combat.h"
 #include "commands.h"
 #include "empobj.h"
@@ -88,10 +89,8 @@ assa(void)
        return RET_OK;
     }
 
-    /* Show what we're assaulting, and check treaties */
-
-    if (att_show(def))
-       return RET_FAIL;
+    /* Show what we're assaulting */
+    att_show(def);
 
     /* Ask about offensive support */
 
@@ -177,7 +176,7 @@ assa(void)
                    pr(" and was killed in the attempt.\n");
                    llp->unit.land.lnd_effic = 0;
                    putland(llp->unit.land.lnd_uid, &llp->unit.land);
-                   lnd_delete(llp);
+                   lnd_put_one(llp);
                } else {
                    wu(0, def->own, "%s spy spotted in %s.\n",
                       cname(player->cnum), xyas(def->x, def->y,