(ship_grow_scale, plane_grow_scale, land_grow_scale): Change from int

to float.  This allows more control of the max. efficiency gain, and
makes it similiar to ship_mob_scale etc.  Closes #1025600.
This commit is contained in:
Ron Koenderink 2005-04-05 03:00:35 +00:00
parent 44d59b5d17
commit 9f27f5b02a
6 changed files with 15 additions and 15 deletions

View file

@ -269,8 +269,8 @@ landrepair(struct lndstr *land, struct natstr *np,
delta = roundavg((double)avail / w_p_eff);
if (delta <= 0)
return 1;
if (delta > etus * land_grow_scale)
delta = etus * land_grow_scale;
if (delta > (int)((float)etus * land_grow_scale))
delta = (int)((float)etus * land_grow_scale);
/* delta is the max amount we can grow */