(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
|
@ -60,7 +60,7 @@ military_control(struct sctstr *sp)
|
|||
snxtitem_xy(&ni, EF_LAND, sp->sct_x, sp->sct_y);
|
||||
while (nxtitem(&ni, &land)) {
|
||||
if (land.lnd_own == sp->sct_own)
|
||||
tot_mil += total_mil(&land);
|
||||
tot_mil += land.lnd_item[I_MILIT];
|
||||
}
|
||||
if ((sp->sct_item[I_MILIT] + tot_mil) * 10 < sp->sct_item[I_CIVIL])
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue