]> git.pond.sub.org Git - empserver/commitdiff
(P_WALKING): Unused, remove.
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 Jun 2006 16:42:36 +0000 (16:42 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 Jun 2006 16:42:36 +0000 (16:42 +0000)
(getpath): Remove P_WALKING case.

include/path.h
src/lib/subs/paths.c

index 433523bc446c0d7337102a7389fb391ba3c69504..0ef6e364dca317a9e688cf1d556c81cc2f955b19 100644 (file)
@@ -53,7 +53,6 @@
 
 enum p_mode {                  /* How to find path to destination */
     P_NONE,                    /* don't */
-    P_WALKING,                 /* use BestLandPath() */
     P_FLYING,                  /* use BestAirPath() */
     P_SAILING                  /* use BestShipPath() */
 };
index 0c5a7f37fe02d0bb69397cf2b020af193cd2a594..1f871f84eee40fb7d2557a09cf87dbbab79fa40b 100644 (file)
@@ -123,11 +123,6 @@ getpath(char *buf, char *arg, coord x, coord y, int onlyown,
            case P_NONE:
                pr("Destination sectors not allowed here!\n");
                break;
-           case P_WALKING:
-               if (getsect(dx, dy, &dsect))
-                   bp = BestLandPath(buf2, &sect, &dsect,
-                                     &mv_cost, MOB_ROAD);
-               break;
            case P_FLYING:
                bp = BestAirPath(buf2, nx, ny, dx, dy);
                break;