(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:
parent
44d59b5d17
commit
9f27f5b02a
6 changed files with 15 additions and 15 deletions
|
@ -333,8 +333,8 @@ shiprepair(struct shpstr *ship, struct natstr *np,
|
|||
delta = roundavg((double)avail / w_p_eff);
|
||||
if (delta <= 0)
|
||||
return 1;
|
||||
if (delta > etus * ship_grow_scale)
|
||||
delta = etus * ship_grow_scale;
|
||||
if (delta > (int)((float)etus * ship_grow_scale))
|
||||
delta = (int)((float)etus * ship_grow_scale);
|
||||
if (delta > left)
|
||||
delta = left;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue