Factor out land unit firing range calculation into lnd_fire_range()
This commit is contained in:
parent
ad5f8e8904
commit
76830b5b98
5 changed files with 15 additions and 6 deletions
|
@ -264,6 +264,15 @@ shp_fire_range(struct shpstr *sp)
|
|||
return effrange(sp->shp_frnge, sp->shp_tech);
|
||||
}
|
||||
|
||||
/*
|
||||
* Return firing range for land unit SP.
|
||||
*/
|
||||
double
|
||||
lnd_fire_range(struct lndstr *lp)
|
||||
{
|
||||
return effrange(lp->lnd_frg, lp->lnd_tech);
|
||||
}
|
||||
|
||||
int
|
||||
roundrange(double r)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue