fix(Core/Spells): Fix typo in tangent() function causing incorrect negative value clamping (#23900)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: FrancescoBorzi <75517+FrancescoBorzi@users.noreply.github.com>
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
This commit is contained in:
Copilot
2026-03-13 08:07:00 +01:00
committed by GitHub
parent c51d036815
commit 41f34ea07b

View File

@@ -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;
}