From b72aec112c4fc25ebbb1ada4b8028aa64d846f4b Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 16:02:35 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Effects/EffectResourceSwitcher.cpp Batch #18561 by eAthena: 2 byte-identical, 0 confirmed by peer review. - fn_03093 EffectResourceSwitcher::SetNames: byte-identical - fn_06969 CEZ2STREffectEx::IsAlive: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Effects/EffectResourceSwitcher.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Contents/Effects/EffectResourceSwitcher.cpp b/Source/Contents/Effects/EffectResourceSwitcher.cpp index 75039b026..55c45b585 100644 --- a/Source/Contents/Effects/EffectResourceSwitcher.cpp +++ b/Source/Contents/Effects/EffectResourceSwitcher.cpp @@ -120,7 +120,9 @@ void EffectResourceSwitcher::SetNames(const std::string& source, const std::stri EffectLists* effects = g_effectMgr; this->effect = static_cast( effects->Spawn(actor->render.accountId, CEZ2STREffectMgr::GetInstance()->EffectId(this->sourceName), vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0)); - this->spawnPosition = actor->render.position; + this->spawnPosition.x = actor->render.position.x; + this->spawnPosition.y = actor->render.position.y; + this->spawnPosition.z = actor->render.position.z; } // OFFSET: 0x005A22E0 @@ -336,10 +338,10 @@ bool CEZ2STREffectEx::IsAlive() { } if (emitter->looping == 1) { - return CEffect::IsAlive(); + return this->ActorExists(); } - if (emitter->lifetime == 0.0f) { + if (0.0f == emitter->lifetime) { return true; }