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:
parent
c51d036815
commit
41f34ea07b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue