forked from mirror/azerothcore-wotlk
fix(Core/Spells): Fix typo in tangent() function causing incorrect negative value clamping (#23900)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: FrancescoBorzi <[email protected]> Co-authored-by: sudlud <[email protected]>
This commit is contained in:
co-authored by
FrancescoBorzi
sudlud
parent
c51d036815
commit
41f34ea07b
@@ -1862,7 +1862,7 @@ float tangent(float x)
|
||||
//if (x <= -std::numeric_limits<float>::max()) return -std::numeric_limits<float>::max();
|
||||
if (x < 100000.0f && x > -100000.0f) return x;
|
||||
if (x >= 100000.0f) return 100000.0f;
|
||||
if (x <= 100000.0f) return -100000.0f;
|
||||
if (x <= -100000.0f) return -100000.0f;
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user