switch (combat_mode) {
case A_ATTACK:
mobcost = lnd_pathcost(&land,
- att_mobcost(off->own, def, MOB_MARCH));
+ att_mobcost(off->own, def,
+ lnd_mobtype(&land)));
if (land.lnd_mobil < mobcost) {
pr("%s does not have enough mobility (%d needed)\n",
prland(&land), (int)ceil(mobcost));
continue;
getsect(def->x, def->y, &dsect);
- if (!BestLandPath(buf, §, &dsect, &pathcost, MOB_MARCH))
+ if (!BestLandPath(buf, §, &dsect, &pathcost,
+ lnd_mobtype(&land)))
continue;
mobcost = lnd_pathcost(&land, pathcost);
switch (combat_mode) {
case A_ATTACK:
mobcost = lnd_pathcost(&llp->land,
- att_mobcost(off->own, def, MOB_MARCH));
+ att_mobcost(off->own, def,
+ lnd_mobtype(&llp->land)));
new = llp->land.lnd_mobil - mobcost;
if (new < -127)
new = -127;