From 2434d2c8eea2e034a401ad31b743b3a17276958e Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 3 Aug 2008 12:18:14 -0400 Subject: [PATCH] Change nav_ship() not to use RET_OK and RET_SYN as return values These are only appropriate for commands and their helpers. --- src/lib/update/nav_ship.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/update/nav_ship.c b/src/lib/update/nav_ship.c index 50cbcaa9..e1fe2b0b 100644 --- a/src/lib/update/nav_ship.c +++ b/src/lib/update/nav_ship.c @@ -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; }