]> git.pond.sub.org Git - empserver/commitdiff
(retreat_ship1, retreat_land1): Used to accept DIR_VIEW, which
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 25 Sep 2005 10:05:09 +0000 (10:05 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 25 Sep 2005 10:05:09 +0000 (10:05 +0000)
happened do do nothing.  Ignoring it like other invalid directions is
clearer.

src/lib/subs/retreat.c

index 5a17ae9290c94a91a8591e0c1b64bd22eeca7f7a..120f3cf2143b8bfab4780bda3c00d08d4baae5e2 100644 (file)
@@ -241,7 +241,7 @@ retreat_ship1(struct shpstr *sp, s_char code, int orig)
                putship(sp->shp_uid, sp);
            return 0;
        }
-       dir = chkdir(sp->shp_rpath[0], DIR_STOP, DIR_VIEW);
+       dir = chkdir(sp->shp_rpath[0], DIR_STOP, DIR_LAST);
        memmove(sp->shp_rpath, sp->shp_rpath+1, sizeof(sp->shp_rpath) - 1);
        if (dir < 0)
            continue;
@@ -467,7 +467,7 @@ retreat_land1(struct lndstr *lp, s_char code, int orig)
                putland(lp->lnd_uid, lp);
            return 0;
        }
-       dir = chkdir(lp->lnd_rpath[0], DIR_STOP, DIR_VIEW);
+       dir = chkdir(lp->lnd_rpath[0], DIR_STOP, DIR_LAST);
        memmove(lp->lnd_rpath, lp->lnd_rpath+1, sizeof(lp->lnd_rpath) - 1);
        if (dir < 0)
            continue;