From 821354baad20b4e1d1d2d292e7737f21eadb9bec Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 02:00:05 +0000 Subject: [PATCH] Decompile fn_18890 (CGlassWall::AddPanel) Batch #12774 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_18890 CGlassWall::AddPanel: logic confirmed by peer review Peer-reviewed-by: Yommy, Tanke, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/GlassWallEffect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Contents/Effects/GlassWallEffect.cpp b/Source/Contents/Effects/GlassWallEffect.cpp index cf407eb0..479785ea 100644 --- a/Source/Contents/Effects/GlassWallEffect.cpp +++ b/Source/Contents/Effects/GlassWallEffect.cpp @@ -18,7 +18,7 @@ CGlassWall::~CGlassWall() { // OFFSET: 0x00B44860 // FUNCTION: fn_18890 void CGlassWall::AddPanel(float angle, float scale, float x, float y, float z) { - const int lastFrame = this->unknown_002C; + const int startFrame = this->unknown_002C - 6; CParticle* particle = CreateParticle(reinterpret_cast(this->position), 1); float* params = &particle->unknown_0054; particle->scale = scale; @@ -30,7 +30,7 @@ void CGlassWall::AddPanel(float angle, float scale, float x, float y, float z) { particle->unknown_00D8 = z; params[0] = 40.0f; params[1] = 30.0f; - params[2] = static_cast(lastFrame - 6); + params[2] = static_cast(startFrame); params[3] = 180.0f; params[4] = 50.0f; particle->SetTexture("effect\\ring_blue.tga");