(ask_olist): Fix reporting of mobility required for attack. Closes
#798045.
This commit is contained in:
parent
64fa28aa34
commit
e50e1b4b35
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue