}
getsect(sp->shp_x, sp->shp_y, §);
- switch (shp_check_nav(§)) {
+ switch (shp_check_nav(§, sp)) {
case CN_CONSTRUCTION:
wu(0, sp->shp_own,
"%s %s,\nbut was caught in a construction zone, and couldn't retreat!\n",
mobcost = 480.0 / (mobcost + techfact(sp->shp_tech, mobcost));
getsect(newx, newy, §);
- if (shp_check_nav(§) != CN_NAVIGABLE ||
+ if (shp_check_nav(§, 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",