Skip to content

Commit 41f34ea

Browse files
CopilotFrancescoBorzisudlud
authored
fix(Core/Spells): Fix typo in tangent() function causing incorrect negative value clamping (azerothcore#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>
1 parent c51d036 commit 41f34ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/game/Spells/Spell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ float tangent(float x)
18621862
//if (x <= -std::numeric_limits<float>::max()) return -std::numeric_limits<float>::max();
18631863
if (x < 100000.0f && x > -100000.0f) return x;
18641864
if (x >= 100000.0f) return 100000.0f;
1865-
if (x <= 100000.0f) return -100000.0f;
1865+
if (x <= -100000.0f) return -100000.0f;
18661866
return 0.0f;
18671867
}
18681868

0 commit comments

Comments
 (0)