(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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue