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
|
@ -135,7 +135,7 @@ enli(void)
|
|||
natp->nat_reserve -= totalmil;
|
||||
putnat(natp);
|
||||
}
|
||||
if ((player->btused += roundavg((float)totalmil * 0.02)) > 0)
|
||||
if ((player->btused += roundavg(totalmil * 0.02)) > 0)
|
||||
pr("Paperwork at recruiting stations ... %d\n", player->btused);
|
||||
return RET_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue