(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:
parent
2732ac5d1d
commit
2cd8e99f49
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue