Do not cast to float where usual arithmetic conversions obviously
convert the cast's result to double. Such casts are ugly and may lose precision.
This commit is contained in:
parent
802f69b039
commit
7a99405942
14 changed files with 35 additions and 35 deletions
|
@ -99,7 +99,7 @@ coll(void)
|
|||
xyas(x, y, player->cnum), cname(loan.l_lonee));
|
||||
return RET_FAIL;
|
||||
}
|
||||
pay = dchr[sect.sct_type].d_value * ((float)sect.sct_effic + 100.0);
|
||||
pay = dchr[sect.sct_type].d_value * (sect.sct_effic + 100.0);
|
||||
for (i = 0; ichr[i].i_name; i++) {
|
||||
if (ichr[i].i_value == 0 || ichr[i].i_uid == I_NONE)
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue