diff --git a/src/lib/commands/marc.c b/src/lib/commands/marc.c index 65544902..e5374297 100644 --- a/src/lib/commands/marc.c +++ b/src/lib/commands/marc.c @@ -160,7 +160,7 @@ march(void) continue; } else { dir = chkdir(*cp++, DIR_STOP, DIR_LAST); - if (dir == -1) { + if (dir < 0) { if (NULL != (cp = lnd_path(together, lnd, buf))) continue; direrr("`%c' to stop", 0, 0); diff --git a/src/lib/commands/navi.c b/src/lib/commands/navi.c index 61adf5e3..2e4b3cce 100644 --- a/src/lib/commands/navi.c +++ b/src/lib/commands/navi.c @@ -185,7 +185,7 @@ navi(void) continue; } else { dir = chkdir(*cp++, DIR_STOP, DIR_VIEW); - if (dir == -1) { + if (dir < 0) { if (NULL != (cp = shp_path(together, shp, buf))) continue; direrr("`%c' to stop", ", `%c' to view, ", 0); diff --git a/src/lib/subs/retreat.c b/src/lib/subs/retreat.c index f8f3f6bb..5a17ae92 100644 --- a/src/lib/subs/retreat.c +++ b/src/lib/subs/retreat.c @@ -243,7 +243,7 @@ retreat_ship1(struct shpstr *sp, s_char code, int orig) } dir = chkdir(sp->shp_rpath[0], DIR_STOP, DIR_VIEW); memmove(sp->shp_rpath, sp->shp_rpath+1, sizeof(sp->shp_rpath) - 1); - if (dir == -1) + if (dir < 0) continue; if (dir == DIR_STOP) stopping++; @@ -469,7 +469,7 @@ retreat_land1(struct lndstr *lp, s_char code, int orig) } dir = chkdir(lp->lnd_rpath[0], DIR_STOP, DIR_VIEW); memmove(lp->lnd_rpath, lp->lnd_rpath+1, sizeof(lp->lnd_rpath) - 1); - if (dir == -1) + if (dir < 0) continue; if (dir == DIR_STOP) stopping++;