From 418d1a1b00a62dbf92987acfa38e2d03c6a5183a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 15:02:14 +0000 Subject: [PATCH] Decompile fn_19170 (CScatterEffect::Slot01) Batch #13229 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_19170 CScatterEffect::Slot01: logic confirmed by peer review Peer-reviewed-by: Tanke, Toshiro, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/ScatterEffect.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Contents/Effects/ScatterEffect.cpp b/Source/Contents/Effects/ScatterEffect.cpp index 929ef10e..5d3088c4 100644 --- a/Source/Contents/Effects/ScatterEffect.cpp +++ b/Source/Contents/Effects/ScatterEffect.cpp @@ -40,10 +40,10 @@ void CScatterEffect::Slot01() { this->unknown_002C = 300; particle->SetSprite("이팩트\\sakura01.spr"); particle->SetAction("이팩트\\sakura01.act"); - particle->scale = static_cast(std::max(rand() % 6, 0) + 22) / 70.0f; - particle->frameDelay = static_cast(std::max(rand() % 3, 0) + 2) * 0.15f; - *reinterpret_cast(&particle->unknown_00C4) = static_cast(std::max(rand() % 360, 0)); - const int angle = std::max(rand() % 360, 0); + particle->scale = static_cast(std::max(0, rand() % 6) + 22) / 70.0f; + particle->frameDelay = static_cast(std::max(0, rand() % 3) + 2) * 0.15f; + *reinterpret_cast(&particle->unknown_00C4) = static_cast(std::max(0, rand() % 360)); + const int angle = std::max(0, rand() % 360); particle->velocity.x = 0.0f; particle->velocity.y = 0.0f; particle->velocity.z = 0.0f;