(P_WALKING): Unused, remove.

(getpath): Remove P_WALKING case.
This commit is contained in:
Markus Armbruster 2006-06-04 16:42:36 +00:00
parent 44318648bf
commit 0ea38208d1
2 changed files with 0 additions and 6 deletions

View file

@ -53,7 +53,6 @@
enum p_mode { /* How to find path to destination */ enum p_mode { /* How to find path to destination */
P_NONE, /* don't */ P_NONE, /* don't */
P_WALKING, /* use BestLandPath() */
P_FLYING, /* use BestAirPath() */ P_FLYING, /* use BestAirPath() */
P_SAILING /* use BestShipPath() */ P_SAILING /* use BestShipPath() */
}; };

View file

@ -123,11 +123,6 @@ getpath(char *buf, char *arg, coord x, coord y, int onlyown,
case P_NONE: case P_NONE:
pr("Destination sectors not allowed here!\n"); pr("Destination sectors not allowed here!\n");
break; break;
case P_WALKING:
if (getsect(dx, dy, &dsect))
bp = BestLandPath(buf2, &sect, &dsect,
&mv_cost, MOB_ROAD);
break;
case P_FLYING: case P_FLYING:
bp = BestAirPath(buf2, nx, ny, dx, dy); bp = BestAirPath(buf2, nx, ny, dx, dy);
break; break;