]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/army.c
Update copyright notice
[empserver] / src / lib / commands / army.c
index c99f1f95e908a1b108cef6eabfaca09f62ccdc60..2dc8bc7cdfa51c598964cff3c0b1b40aa55f0277 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
  *  ---
  *
  *  army.c: Add units to an army
- * 
+ *
  *  Known contributors to this file:
- *     
+ *
  */
 
 #include <config.h>
 
 #include <ctype.h>
-#include "misc.h"
-#include "player.h"
-#include "land.h"
-#include "nsc.h"
-#include "file.h"
 #include "commands.h"
+#include "land.h"
 
 int
 army(void)
@@ -62,8 +58,8 @@ army(void)
        return RET_SYN;
     }
     if (c == '~')
-       c = ' ';
-    if (!snxtitem(&nstr, EF_LAND, player->argp[2]))
+       c = 0;
+    if (!snxtitem(&nstr, EF_LAND, player->argp[2], NULL))
        return RET_SYN;
     count = 0;
     while (nxtitem(&nstr, &land)) {
@@ -87,6 +83,6 @@ army(void)
        putland(land.lnd_uid, &land);
        count++;
     }
-    pr("%d unit%s added to army `%c'\n", count, splur(count), c);
+    pr("%d unit%s added to army `%1.1s'\n", count, splur(count), &c);
     return RET_OK;
 }