(marc, navi, retreat_ship1, retreat_land1): Treat any negative value

of chkdir() as failure, not just -1.
This commit is contained in:
Markus Armbruster 2005-09-25 10:00:43 +00:00
parent dfa56cb0ef
commit 1fe759dc1e
3 changed files with 4 additions and 4 deletions

View file

@ -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);