From 12700b181aa348fb742faef6af643528bafa66cf Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 01:48:47 +0000 Subject: [PATCH] Decompile fn_11017 (sub_86BF00) Batch #6741 by Montyla: 0 byte-identical, 1 confirmed by peer review. - fn_11017 sub_86BF00: logic confirmed by peer review Peer-reviewed-by: eAthena, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Utility/Math/Int64Math.cpp | 10 ++++++++++ Source/Utility/Math/Int64Math.h | 1 + 2 files changed, 11 insertions(+) diff --git a/Source/Utility/Math/Int64Math.cpp b/Source/Utility/Math/Int64Math.cpp index 54e63286..a8228299 100644 --- a/Source/Utility/Math/Int64Math.cpp +++ b/Source/Utility/Math/Int64Math.cpp @@ -9,3 +9,13 @@ std::int64_t MaxInt64(const std::int64_t& first, const int& second) { } return first; } + +// OFFSET: 0x0086BF00 +// FUNCTION: fn_11017 +std::int64_t sub_86BF00(const int& value, const std::int64_t& other) { + const std::int64_t extended = value; + if (other < extended) { + return extended; + } + return other; +} diff --git a/Source/Utility/Math/Int64Math.h b/Source/Utility/Math/Int64Math.h index f8900e1f..bf311843 100644 --- a/Source/Utility/Math/Int64Math.h +++ b/Source/Utility/Math/Int64Math.h @@ -4,5 +4,6 @@ #include std::int64_t MaxInt64(const std::int64_t& first, const int& second); +std::int64_t sub_86BF00(const int& value, const std::int64_t& other); #endif