Do not cast to float where default argument promotion obviously

converts the cast's result to double.  Such casts are ugly and may
lose precision.
This commit is contained in:
Markus Armbruster 2006-05-06 08:34:33 +00:00
parent 7a99405942
commit f819e7ac85
4 changed files with 12 additions and 12 deletions

View file

@ -468,8 +468,9 @@ show_land_stats(int tlev)
ourtlev = (int)(tlev - lcp->l_tech);
pr("%-25s %1.1f %1.1f %3d ",
lcp->l_name, (float)LND_ATTDEF(lcp->l_att, ourtlev),
(float)LND_ATTDEF(lcp->l_def, ourtlev),
lcp->l_name,
LND_ATTDEF(lcp->l_att, ourtlev),
LND_ATTDEF(lcp->l_def, ourtlev),
(int)LND_VUL(lcp->l_vul, ourtlev));
pr("%2d %2d %2d %2d ",
(int)LND_SPD(lcp->l_spd, ourtlev),