From d8140195f6bfaa0bd514b22c8732760981d69503 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 19:51:36 +0000 Subject: [PATCH] Decompile fn_07056 (CMeteorEffect::Slot01) Batch #13296 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_07056 CMeteorEffect::Slot01: logic confirmed by peer review Peer-reviewed-by: eAthena, Tanke, Toshiro Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/MeteorEffect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Contents/Effects/MeteorEffect.cpp b/Source/Contents/Effects/MeteorEffect.cpp index 6174c6cff..5f1d64990 100644 --- a/Source/Contents/Effects/MeteorEffect.cpp +++ b/Source/Contents/Effects/MeteorEffect.cpp @@ -39,10 +39,10 @@ void CMeteorEffect::Slot01() { for (long long i = 0; i < count; ++i) { vector3d pos; - const int r1 = spanPlus1 != 0 ? std::max(rand() % spanPlus1, 0) : 0; + const int r1 = spanPlus1 != 0 ? std::ranges::max(rand() % spanPlus1, 0) : 0; pos.x = static_cast(r1) - halfSpan + this->position[0]; pos.y = this->position[1]; - const int r2 = spanPlus1 != 0 ? std::max(rand() % spanPlus1, 0) : 0; + const int r2 = spanPlus1 != 0 ? std::ranges::max(rand() % spanPlus1, 0) : 0; pos.z = static_cast(r2) - halfSpan + this->position[2]; CSpriteParticle* particle = static_cast(CreateSpriteParticle(&pos, 1));