(marc, navi, retreat_ship1, retreat_land1): Treat any negative value
of chkdir() as failure, not just -1.
This commit is contained in:
parent
dfa56cb0ef
commit
1fe759dc1e
3 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue