mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-02-17 09:31:42 +00:00
Fixed incorrect parameter passed into AlmostEqual() which caused the function to always return true. Recompiled mathlib.
This commit is contained in:
parent
39ed87570b
commit
823818305d
4 changed files with 6 additions and 6 deletions
Binary file not shown.
|
@ -2172,9 +2172,9 @@ bool AlmostEqual(float a, float b, int maxUlps = 10);
|
|||
|
||||
inline bool AlmostEqual( const Vector &a, const Vector &b, int maxUlps = 10)
|
||||
{
|
||||
return AlmostEqual( a.x, a.x, maxUlps ) &&
|
||||
AlmostEqual( a.y, a.y, maxUlps ) &&
|
||||
AlmostEqual( a.z, a.z, maxUlps );
|
||||
return AlmostEqual( a.x, b.x, maxUlps ) &&
|
||||
AlmostEqual( a.y, b.y, maxUlps ) &&
|
||||
AlmostEqual( a.z, b.z, maxUlps );
|
||||
}
|
||||
|
||||
|
||||
|
|
Binary file not shown.
|
@ -2172,9 +2172,9 @@ bool AlmostEqual(float a, float b, int maxUlps = 10);
|
|||
|
||||
inline bool AlmostEqual( const Vector &a, const Vector &b, int maxUlps = 10)
|
||||
{
|
||||
return AlmostEqual( a.x, a.x, maxUlps ) &&
|
||||
AlmostEqual( a.y, a.y, maxUlps ) &&
|
||||
AlmostEqual( a.z, a.z, maxUlps );
|
||||
return AlmostEqual( a.x, b.x, maxUlps ) &&
|
||||
AlmostEqual( a.y, b.y, maxUlps ) &&
|
||||
AlmostEqual( a.z, b.z, maxUlps );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue