mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: remove unnecessary abs with epsilon check
Introduced in 2745f8b27c43b9c78c106e3dc278a2d1752fd7a5 but this is not needed.
This commit is contained in:
parent
7ee884b39c
commit
1e2c445cf3
@ -270,7 +270,7 @@ bool rdIntersectSegmentCylinder(const float* sp, const float* sq, const float* p
|
||||
// Vertical (z-axis) intersection test
|
||||
const float dz = sq[2]-sp[2];
|
||||
|
||||
if (rdMathFabsf(dz) > RD_EPS)
|
||||
if (dz != 0.0f)
|
||||
{
|
||||
float tCapMin = (cz-sp[2]) / dz;
|
||||
float tCapMax = (topZ-sp[2]) / dz;
|
||||
@ -312,7 +312,7 @@ bool rdIntersectSegmentConvexHull(const float* sp, const float* sq,
|
||||
// Vertical (z-axis) intersection test
|
||||
const float dz = sq[2]-sp[2];
|
||||
|
||||
if (rdMathFabsf(dz) > RD_EPS)
|
||||
if (dz != 0.0f)
|
||||
{
|
||||
float tCapMin = (hmin-sp[2]) / dz;
|
||||
float tCapMax = (hmax-sp[2]) / dz;
|
||||
|
Loading…
x
Reference in New Issue
Block a user