(oprange): Fix for non-missile planes: round pln_range/2 down, not up.

Planes didn't actually fly to the incorrect range, but mission showed
it.
This commit is contained in:
Markus Armbruster 2006-05-20 17:34:32 +00:00
parent 2732ac5d1d
commit 2cd8e99f49

View file

@ -936,7 +936,7 @@ oprange(struct genitem *gp, int type, int *radius)
if (plchr[(int)plane.pln_type].pl_flags & P_M)
range = plane.pln_range;
else
range = ldround((double)plane.pln_range / 2.0, 1);;
range = plane.pln_range / 2;
break;
default:
CANT_HAPPEN("bad TYPE");