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:
parent
7e9fbc174d
commit
affd4423a1
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue