(ask_olist): Fix reporting of mobility required for attack. Closes

#798045.
This commit is contained in:
Markus Armbruster 2004-01-12 20:13:28 +00:00
parent 64fa28aa34
commit e50e1b4b35

View file

@ -1077,7 +1077,7 @@ ask_olist(int combat_mode, struct combat *off, struct combat *def,
lnd_mobcost(&land, getsectp(def->x, def->y), MOB_NONE); lnd_mobcost(&land, getsectp(def->x, def->y), MOB_NONE);
if (land.lnd_mobil < mobcost) { if (land.lnd_mobil < mobcost) {
pr("%s does not have enough mobility (%d needed)\n", pr("%s does not have enough mobility (%d needed)\n",
prland(&land), (int)mobcost + 1); prland(&land), (int)ceil(mobcost));
continue; continue;
} }
break; break;