]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/orde.c
Update copyright notice
[empserver] / src / lib / commands / orde.c
index d4373d054dceab40739c857cb8fa6e50b1855082..4515fb17f1981cc3fc2ac1d63bcfe5ff61c931c5 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-2009, 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 @@
  *  ---
  *
  *  orde.c: Turn on/off autonavigation
- * 
+ *
  *  Known contributors to this file:
  *     Chad Zabel, 1994
  *     Steve McClure, 2000
@@ -52,8 +52,8 @@
  *  ORDER <ship> l[evel]   <field> <start/end> <comm> <level>
  *
  * New syntax:
- *  qorder <ship>    display cargo levels     
- *  sorder <ship>    display statistical info 
+ *  qorder <ship>    display cargo levels
+ *  sorder <ship>    display statistical info
  */
 
 int
@@ -137,7 +137,7 @@ orde(void)
            if (!orders) {
                p = getstarg(player->argp[4], "Second dest? ", buf);
                if (!p)
-                   return RET_SYN;
+                   return RET_FAIL;
                if (!*p || !strcmp(p, "-")) {
                    orders = 1;
                    pr("A one-way order has been accepted.\n");
@@ -194,7 +194,7 @@ orde(void)
                break;
            }
 
-           /* to keep sub in range of our arrays 
+           /* to keep sub in range of our arrays
               subtract 1 so the new range is 0-(TMAX-1)
             */
            sub = sub - 1;;
@@ -279,7 +279,7 @@ orde(void)
 
            ship.shp_autonav |= AN_LOADING;
 
-           /*  swap variables, this keeps 
+           /*  swap variables, this keeps
               the load_it() procedure happy. CZ
             */
            tcord = ship.shp_destx[0];