]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/plan.c
Update copyright notice
[empserver] / src / lib / commands / plan.c
index b841573cbfa62c918bc0ecf1a188bed6b93e58a8..d031c682f1ec2c2dba820885930e9b1c4a5f8c68 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -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");
     }