]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/tran.c
Clean up superfluous includes
[empserver] / src / lib / commands / tran.c
index 849a417fcea76e0ca894d66690402f72e2a2c996..40e4052d9c7d114cca0f524e9b95b634f8270476 100644 (file)
 #include <config.h>
 
 #include "commands.h"
-#include "land.h"
 #include "map.h"
 #include "nuke.h"
 #include "plane.h"
-#include "ship.h"
 
 static int tran_pmap(coord, coord, char *, char *);
 static int tran_nmap(coord, coord, char *, char *);
@@ -170,7 +168,12 @@ tran_plane(void)
            continue;
        type = plane.pln_type;
        if (plane.pln_ship >= 0) {
-           pr("%s is at sea and can't be transported\n", prplane(&plane));
+           pr("%s is stowed on ship #%d, and can't be transported\n",
+              prplane(&plane), plane.pln_ship);
+           return RET_FAIL;
+       } else if (plane.pln_land >= 0) {
+           pr("%s is stowed on land #%d, and can't be transported\n",
+              prplane(&plane), plane.pln_land);
            return RET_FAIL;
        } else if (plane.pln_harden != 0) {
            pr("%s has been hardened and can't be transported\n",