Remove redundant casts of argument to (prototyped) double parameter.

This commit is contained in:
Markus Armbruster 2006-05-01 12:34:16 +00:00
parent 7c3899bf89
commit 7ed308526c
19 changed files with 82 additions and 93 deletions

View file

@ -803,9 +803,8 @@ quiet_bigdef(int attacker, struct emp_qelem *list, natid own, natid aown,
if (ship.shp_mobil <= 0)
continue;
*/
erange = ship.shp_effic *
techfact(ship.shp_tech, ((double)ship.shp_frnge))
/ 100.0;
erange = ship.shp_effic
* techfact(ship.shp_tech, ship.shp_frnge) / 100.0;
erange = (double)roundrange(erange);
range = mapdist(ship.shp_x, ship.shp_y, ax, ay);
if (range > erange)