(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
|
@ -431,7 +431,7 @@ feed_ship(struct shpstr *sp, int etus, int *needed, int doit)
|
|||
if (lp->lnd_ship != sp->shp_uid)
|
||||
continue;
|
||||
need = ifood_eaten - sp->shp_item[I_FOOD];
|
||||
land_eaten = etus * eatrate * lnd_getmil(lp);
|
||||
land_eaten = etus * eatrate * lp->lnd_item[I_MILIT];
|
||||
if (lp->lnd_item[I_FOOD] - need > land_eaten) {
|
||||
sp->shp_item[I_FOOD] += need;
|
||||
lp->lnd_item[I_FOOD] -= need;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue