From 60eebee21e272b290d3e8f0348c5f8a5fc9b3da8 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 04:34:17 +0000 Subject: [PATCH] Decompile fn_19766 (Get_Angle) Batch #11740 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_19766 Get_Angle: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/EffectPrimitiveState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Contents/Effects/EffectPrimitiveState.cpp b/Source/Contents/Effects/EffectPrimitiveState.cpp index b0fbda99..82cc293a 100644 --- a/Source/Contents/Effects/EffectPrimitiveState.cpp +++ b/Source/Contents/Effects/EffectPrimitiveState.cpp @@ -54,7 +54,7 @@ void __stdcall Get_Angle(float x, float y, std::int16_t* angle) { const float normalX = x / length; for (std::int16_t index = 0; index <= 180; ++index) { - if (normalX >= ClientCosine(index)) { + if (normalX >= g_cosTable[index]) { *angle = normalY < 0.0f ? 360 - index : index; return; }