]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/retreat.c
(fuel, load, shp_check_nav, retreat_ship1, shp_nav_one_sector)
[empserver] / src / lib / subs / retreat.c
index 6b89c94d499f07626e3aad82ae8a1f306522c0ba..17d17380ff7183ec4ccc3fe1a6f0f2949df0b047 100644 (file)
@@ -188,7 +188,7 @@ retreat_ship1(struct shpstr *sp, s_char code, int orig)
     }
 
     getsect(sp->shp_x, sp->shp_y, &sect);
-    switch (shp_check_nav(&sect)) {
+    switch (shp_check_nav(&sect, sp)) {
     case CN_CONSTRUCTION:
        wu(0, sp->shp_own,
           "%s %s,\nbut was caught in a construction zone, and couldn't retreat!\n",
@@ -262,7 +262,7 @@ retreat_ship1(struct shpstr *sp, s_char code, int orig)
        mobcost = 480.0 / (mobcost + techfact(sp->shp_tech, mobcost));
 
        getsect(newx, newy, &sect);
-       if (shp_check_nav(&sect) != CN_NAVIGABLE ||
+       if (shp_check_nav(&sect, sp) != CN_NAVIGABLE ||
            (sect.sct_own && !player->owner &&
             getrel(getnatp(sect.sct_own), sp->shp_own) < FRIENDLY)) {
            wu(0, sp->shp_own, "%s %s,\nbut could not retreat to %s!\n",