]> git.pond.sub.org Git - empserver/commitdiff
Change set with nuke.h rev. 1.21 was incomplete (harmless because the
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 29 May 2006 19:29:29 +0000 (19:29 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 29 May 2006 19:29:29 +0000 (19:29 +0000)
missing bits were consistent):
(build_nuke): Assign 0 instead of space.
(nuke): Update printing of group.

src/lib/commands/buil.c
src/lib/commands/nuke.c

index d1495c63f57ed05f349b150c36e2a415ded155b8..6093abf17f5d8e56eb1793197a317576c006e8df 100644 (file)
@@ -693,7 +693,7 @@ build_nuke(struct sctstr *sp, struct nchrstr *np, short *vec, int tlev)
     nuke.nuk_own = sp->sct_own;
     nuke.nuk_type = np - nchr;
     nuke.nuk_effic = 100;
-    nuke.nuk_stockpile = ' ';
+    nuke.nuk_stockpile = 0;
     nuke.nuk_ship = nuke.nuk_plane = nuke.nuk_land = -1;
     nuke.nuk_uid = nstr.cur;
     nuke.nuk_tech = tlev;
index b6e38ee8840f50333d38f5d87c4a9dfebbcf763c..136d1be50b0b9d9a553d0c289d323ce524c45504 100644 (file)
@@ -29,6 +29,7 @@
  * 
  *  Known contributors to this file:
  *     Dave Pare, 1986
+ *     Markus Armbruster, 2006
  */
 
 #include <config.h>
@@ -66,7 +67,8 @@ nuke(void)
            pr("%-3d ", nuk.nuk_own);
        pr("%4d %-19.19s ", nstr.cur, nchr[(int)nuk.nuk_type].n_name);
        prxy("%4d,%-4d", nuk.nuk_x, nuk.nuk_y, player->cnum);
-       pr(" %c %3d%% %4d", nuk.nuk_stockpile, nuk.nuk_effic, nuk.nuk_tech);
+       pr(" %1.1s %3d%% %4d",
+          &nuk.nuk_stockpile, nuk.nuk_effic, nuk.nuk_tech);
        if (nuk.nuk_plane >= 0) {
            getplane(nuk.nuk_plane, &plane);
            pr("%5dP %s",