From affd4423a12b5e44fb703fc85adcc901b7613dfc Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 01:42:44 +0000 Subject: [PATCH] Decompile 2 functions in Source/Client/Mode/LoginMode.cpp Batch #17618 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_22272 CLoginMode::GetMaxCharacterSlot: logic confirmed by peer review - fn_22285 CLoginMode::ReceiveNotifyZoneServer: logic confirmed by peer review Peer-reviewed-by: Yommy, cremane, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Mode/LoginMode.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Client/Mode/LoginMode.cpp b/Source/Client/Mode/LoginMode.cpp index 6ffce4743..7b24df0d0 100644 --- a/Source/Client/Mode/LoginMode.cpp +++ b/Source/Client/Mode/LoginMode.cpp @@ -613,7 +613,9 @@ int CLoginMode::GetMaxCharacterSlot() { } const int slot = this->characters[i].slot; - maxSlot = maxSlot < slot ? slot : maxSlot; + if (slot > maxSlot) { + maxSlot = slot; + } } return maxSlot; @@ -1588,7 +1590,7 @@ void CLoginMode::ConnectZoneServer(std::uint32_t gid, std::string mapName, std:: // OFFSET: 0x00D90740 // FUNCTION: fn_22285 __declspec(noinline) void CLoginMode::ReceiveNotifyZoneServer(const NotifyZoneServerPacket* packet) { - this->ConnectZoneServer(packet->gid, std::string(std::begin(packet->mapName), std::end(packet->mapName)).c_str(), packet->ip, packet->port, std::string()); + this->ConnectZoneServer(packet->gid, std::string(std::begin(packet->mapName), std::end(packet->mapName)).c_str(), packet->ip, packet->port, ""); } // OFFSET: 0x00D971E0