mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 14:05:28 +00:00
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:
@@ -1862,7 +1862,7 @@ float tangent(float x)
|
|||||||
//if (x <= -std::numeric_limits<float>::max()) return -std::numeric_limits<float>::max();
|
//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 && 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;
|
if (x <= -100000.0f) return -100000.0f;
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user