(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
|
@ -206,7 +206,7 @@ llook(void)
|
|||
continue;
|
||||
/* Spies don't need military to do a "llook". Other
|
||||
units do */
|
||||
if ((lnd_getmil(&myland) <= 0) &&
|
||||
if ((myland.lnd_item[I_MILIT] <= 0) &&
|
||||
!(lchr[(int)myland.lnd_type].l_flags & L_SPY))
|
||||
continue;
|
||||
look_land(&myland);
|
||||
|
@ -288,7 +288,7 @@ look_land(struct lndstr *lookland)
|
|||
|
||||
pr("%s (#%d) %s (approx %d mil) @ %s\n",
|
||||
cname(lp->lnd_own), lp->lnd_own,
|
||||
prland(lp), roundintby(total_mil(lp), 20),
|
||||
prland(lp), roundintby(lp->lnd_item[I_MILIT], 20),
|
||||
xyas(lp->lnd_x, lp->lnd_y, player->cnum));
|
||||
if (opt_HIDDEN)
|
||||
setcont(player->cnum, lp->lnd_own, FOUND_LOOK);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue