(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:
parent
3a38e91a5c
commit
2732ac5d1d
15 changed files with 43 additions and 62 deletions
|
@ -351,7 +351,7 @@ feed_land(struct lndstr *lp, int etus, int *needed, int doit)
|
|||
if (opt_NOFOOD)
|
||||
return 0; /* no food no work to be done */
|
||||
|
||||
total_people = total_mil(lp);
|
||||
total_people = lp->lnd_item[I_MILIT];
|
||||
food_eaten = etus * eatrate * total_people;
|
||||
ifood_eaten = (int)food_eaten;
|
||||
if (food_eaten - ifood_eaten > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue