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).
This commit is contained in:
ragnarok-clanker 2026-11-10 07:08:47 +00:00
commit ea2cfaaddc

View file

@ -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];