From db7c3a2d951c5d84999fa30da3c5de1d9020e81f Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 12:33:49 +0000 Subject: [PATCH] Decompile fn_18950 (CMapChainEffect::Slot07) Batch #12215 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_18950 CMapChainEffect::Slot07: 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/Effects/MapChainEffect.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Source/Contents/Effects/MapChainEffect.cpp b/Source/Contents/Effects/MapChainEffect.cpp index 2e0996d3..01b26d7a 100644 --- a/Source/Contents/Effects/MapChainEffect.cpp +++ b/Source/Contents/Effects/MapChainEffect.cpp @@ -93,11 +93,6 @@ void CMapChainEffect::Slot01() { // FUNCTION: fn_18950 void CMapChainEffect::Slot07() { const char* base = reinterpret_cast(this); - const float u44 = *reinterpret_cast(base + 0x44); - const float u48 = *reinterpret_cast(base + 0x48); - const int u54 = *reinterpret_cast(base + 0x54); - const float u5C = *reinterpret_cast(base + 0x5C); - const float u60 = *reinterpret_cast(base + 0x60); for (std::vector::iterator it = this->particles.begin(); it != this->particles.end(); ++it) { CParticle* particle = *it; @@ -105,11 +100,11 @@ void CMapChainEffect::Slot07() { particle->position.x = this->position[0]; particle->position.y = this->position[1]; particle->position.z = this->position[2]; - particle->unknown_00C0 = u44; - particle->scale = u48; - particle->alpha = u54; - particle->unknown_0054 = u5C; - *reinterpret_cast(particle->unknown_0058) = u60; + particle->unknown_00C0 = *reinterpret_cast(base + 0x44); + particle->scale = *reinterpret_cast(base + 0x48); + particle->alpha = *reinterpret_cast(base + 0x54); + particle->unknown_0054 = *reinterpret_cast(base + 0x5C); + *reinterpret_cast(particle->unknown_0058) = *reinterpret_cast(base + 0x60); particle->sourceBlend = 5; particle->destinationBlend = 7; InitParticleQuad(particle->vertices);