]> git.pond.sub.org Git - empserver/commitdiff
Change nav_ship() not to use RET_OK and RET_SYN as return values
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 3 Aug 2008 16:18:14 +0000 (12:18 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 3 Aug 2008 16:18:14 +0000 (12:18 -0400)
These are only appropriate for commands and their helpers.

src/lib/update/nav_ship.c

index 50cbcaa92c6a9d9ae89536a645bcb9cbfa1bd392..e1fe2b0b25f1b9ad3c3998c2739c716e021929a6 100644 (file)
@@ -260,7 +260,7 @@ nav_ship(struct shpstr *sp)
 
     /* just return if no autonaving to do for this ship */
     if (!(sp->shp_autonav & AN_AUTONAV) || (sp->shp_autonav & AN_STANDBY))
-       return RET_OK;
+       return 0;
 
     cnum = sp->shp_own;
 
@@ -280,7 +280,7 @@ nav_ship(struct shpstr *sp)
            shp_nav(&ship_list, &dummydouble, &dummydouble, &dummyint,
                    sp->shp_own);
            if (QEMPTY(&ship_list))
-               return RET_OK;
+               return 0;
 
            cp = BestShipPath(buf, sp->shp_x, sp->shp_y,
                              sp->shp_destx[0], sp->shp_desty[0],
@@ -299,7 +299,7 @@ nav_ship(struct shpstr *sp)
                    free(qp);
                    qp = newqp;
                }
-               return RET_SYN;
+               return -1;
            }
            stopping = 0;
 
@@ -339,5 +339,5 @@ nav_ship(struct shpstr *sp)
        free(qp);
        qp = newqp;
     }
-    return RET_OK;
+    return 0;
 }