From ea2cfaaddceec32017162513399368f7b3419e00 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 07:08:47 +0000 Subject: [PATCH] Decompile fn_17585 (GroundGeometry::DrawLit) Batch #15577 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_17585 GroundGeometry::DrawLit: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Ground/GroundLighting.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Contents/Ground/GroundLighting.cpp b/Source/Contents/Ground/GroundLighting.cpp index 403573a9f..fe541636a 100644 --- a/Source/Contents/Ground/GroundLighting.cpp +++ b/Source/Contents/Ground/GroundLighting.cpp @@ -1,6 +1,7 @@ #include "Contents/Ground/GroundGeometry.h" #include "Contents/Ground/GroundRendering.h" #include "Contents/Configuration/ServiceOptions.h" +#include "Contents/Effects/EffectPoint.h" #include "Contents/Effects/EffectPrim.h" #include "Contents/MapSkyMgr.h" #include "Render/Primitives/LightmappedPrimitive.h" @@ -100,6 +101,7 @@ void GroundGeometry::DrawLightmapped(const float* matrix, const GroundQuad& quad // FUNCTION: fn_17585 void GroundGeometry::DrawLit(const float* matrix, const int* rectangle, bool clip) { float ambient[3]; + EffectPoint corners[4]; std::memcpy(ambient, g_worldLighting.ambient, sizeof(ambient)); int row = rectangle[1];