From df66f70ec2f60bb146bebe45fb07fd901f04df39 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 20:03:55 +0000 Subject: [PATCH] Maintenance: Fix main link break (LNK2001, ~30 refs): batch 17229 removed INLINED ClientSin/ClientCos from ClientAngles.cpp, but the Batch #17272 by ragnarok-clanker: forced by an admin (0 lower score(s), 0 changed function(s)); checked with 1 compiled unit(s). --- Source/Render/DX7/RendererFogDX7.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Render/DX7/RendererFogDX7.cpp b/Source/Render/DX7/RendererFogDX7.cpp index deeea2885..11ad5e3d7 100644 --- a/Source/Render/DX7/RendererFogDX7.cpp +++ b/Source/Render/DX7/RendererFogDX7.cpp @@ -10,14 +10,14 @@ // OFFSET: 0x00556E50 // FUNCTION: fn_02039 - __declspec(noinline) float Sine(volatile float angle) { + __declspec(noinline) float ClientSin(volatile float angle) { angle = sinf(angle); return angle; } // OFFSET: 0x00556E40 // FUNCTION: fn_02038 - __declspec(noinline) float Cosine(volatile float angle) { + __declspec(noinline) float ClientCos(volatile float angle) { angle = cosf(angle); return angle; } @@ -41,12 +41,12 @@ HRESULT PerspectiveMatrixDX7(D3DMATRIX& matrix, float fov, float aspect, float n const float half = fov * 0.5f; - if (epsilon > std::fabs(Sine(half))) { + if (epsilon > std::fabs(ClientSin(half))) { return E_INVALIDARG; } - const float scaleX = Cosine(half) / Sine(half) * aspect; - const float scaleY = Cosine(half) / Sine(half); + const float scaleX = ClientCos(half) / ClientSin(half) * aspect; + const float scaleY = ClientCos(half) / ClientSin(half); const float depth = farPlane / difference; matrix._12 = 0;