Factor out land unit firing range calculation into lnd_fire_range()

This commit is contained in:
Markus Armbruster 2008-03-03 20:24:52 +01:00
parent ad5f8e8904
commit 76830b5b98
5 changed files with 15 additions and 6 deletions

View file

@ -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)
{