mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix typo causing bug in rdClassifyPointInsideBounds
Needs the square root for normalization.
This commit is contained in:
parent
fab5344703
commit
cff151687d
@ -490,7 +490,7 @@ unsigned char rdClassifyPointInsideBounds(const float* pt, const float* bmin, co
|
||||
boxSize[0] = bmax[0]-bmin[0];
|
||||
boxSize[1] = bmax[1]-bmin[1];
|
||||
|
||||
const float len = rdSqr(dir[0]*dir[0] + dir[1]*dir[1]);
|
||||
const float len = rdMathSqrtf(dir[0]*dir[0] + dir[1]*dir[1]);
|
||||
if (len > RD_EPS)
|
||||
{
|
||||
dir[0] /= len;
|
||||
|
Loading…
x
Reference in New Issue
Block a user