(show_nuke_build, show_nuke_capab): Fix rounding of research.

Reported by Doug Wescott.
This commit is contained in:
Markus Armbruster 2007-05-13 14:39:42 +00:00
parent 06f61d1a4e
commit 1cfeeb6e0c

View file

@ -175,7 +175,7 @@ show_nuke_build(int tlev)
np->n_name, np->n_lcm, np->n_hcm, np->n_oil,
np->n_rad, avail, np->n_tech,
drnuke_const > MIN_DRNUKE_CONST ?
(np->n_tech * drnuke_const) + 1.0 : 0.0,
ceil(np->n_tech * drnuke_const) : 0.0,
np->n_cost);
}
}
@ -196,7 +196,7 @@ show_nuke_capab(int tlev)
np->n_name, np->n_blast, np->n_dam,
np->n_weight, np->n_tech,
drnuke_const > MIN_DRNUKE_CONST ?
(np->n_tech * drnuke_const) + 1.0 : 0.0,
ceil(np->n_tech * drnuke_const) : 0.0,
np->n_cost);
for (i = j = 0; i < 32; i++) {
if (!(np->n_flags & bit(i)))