]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/plan.c
Fix trailing whitespace
[empserver] / src / lib / commands / plan.c
index b841573cbfa62c918bc0ecf1a188bed6b93e58a8..b42c1b9838f83d0b984e4b93c3fd779638bd27fa 100644 (file)
@@ -26,7 +26,7 @@
  *  ---
  *
  *  plan.c: Do a plane report
- * 
+ *
  *  Known contributors to this file:
  *     Dave Pare, 1986
  *     Steve McClure, 2000
@@ -46,6 +46,7 @@ plan(void)
     int nplanes, noff;
     struct nstr_item np;
     struct plnstr plane;
+    struct nukstr nuke;
 
     if (!snxtitem(&np, EF_PLANE, player->argp[1], NULL))
        return RET_SYN;
@@ -76,9 +77,9 @@ plan(void)
            pr("      ");
        if (pln_is_in_orbit(&plane))
            pr((plane.pln_flags & PLN_SYNCHRONOUS) ? " geosync" : " orbit");
-       else if (plane.pln_nuketype >= 0)
+       else if (getnuke(nuk_on_plane(&plane), &nuke))
            pr(" %-5.5s %c",
-              nchr[(int)plane.pln_nuketype].n_name,
+              nchr[nuke.nuk_type].n_name,
               plane.pln_flags & PLN_AIRBURST ? 'A' : 'G');
        pr("\n");
     }