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).
This commit is contained in:
ragnarok-clanker 2026-11-12 01:42:44 +00:00
commit affd4423a1

View file

@ -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