Radius was not made more coarse when I did the big-maps fix, so you were considered in every waypoint, meaning it worked exactly before I made this change in the first place

https://youtu.be/csnS0nszyuA
This commit is contained in:
TehRealSalt 2019-10-27 17:18:22 -04:00
parent 54516aeee9
commit 34e0b4b991

View file

@ -266,7 +266,7 @@ waypoint_t *K_GetBestWaypointTouchingMobj(mobj_t *const mobj)
checkdist = P_AproxDistance(checkdist, (mobj->z >> FRACBITS) - (checkwaypoint->mobj->z >> FRACBITS));
// The mobj has to be touching this waypoint to use it.
if ((checkdist <= checkwaypoint->mobj->radius)
if ((checkdist <= (checkwaypoint->mobj->radius >> FRACBITS))
&& (checkdist < bestdist))
{
bestwaypoint = checkwaypoint;