mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
54516aeee9
commit
34e0b4b991
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue