(lnd_getmil, total_mil): Trivial, inline into callers and remove. The

abstraction from actual land unit mil encoding provided by them was
too leaky to be relied upon anyway.
This commit is contained in:
Markus Armbruster 2006-05-20 16:39:58 +00:00
parent 3a38e91a5c
commit 2732ac5d1d
15 changed files with 43 additions and 62 deletions

View file

@ -1751,7 +1751,7 @@ count_bodies(struct combat *off, struct emp_qelem *list)
bodies += off[n].troops;
for (qp = list->q_forw; qp != list; qp = qp->q_forw) {
llp = (struct llist *)qp;
bodies += total_mil(&llp->land);
bodies += llp->land.lnd_item[I_MILIT];
}
return bodies;
}
@ -2117,8 +2117,8 @@ take_casualty(int combat_mode, struct combat *off, struct emp_qelem *olist)
for (qp = olist->q_forw; qp != olist; qp = qp->q_forw) {
llp = (struct llist *)qp;
if (total_mil(&llp->land) > biggest_mil) {
biggest_mil = total_mil(&llp->land);
if (llp->land.lnd_item[I_MILIT] > biggest_mil) {
biggest_mil = llp->land.lnd_item[I_MILIT];
biggest = qp;
}
}