Decompile fn_21588 (CGameMode::ReceiveChangeZoneServerWithHost)

Batch #15320 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_21588 CGameMode::ReceiveChangeZoneServerWithHost: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, kyoshi
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-09 21:04:14 +00:00
commit 95fe4670e6

View file

@ -1933,13 +1933,12 @@ void CGameMode::ReceiveWhisperResult(unsigned char kind, int argument) {
// OFFSET: 0x00D08390
// FUNCTION: fn_21588
void CGameMode::ReceiveChangeZoneServerWithHost(const unsigned char* packet) {
const int x = *reinterpret_cast<const std::int16_t*>(packet + 0x12);
const int y = *reinterpret_cast<const std::int16_t*>(packet + 0x14);
const int ip = *reinterpret_cast<const int*>(packet + 0x16);
const int port = *reinterpret_cast<const std::int16_t*>(packet + 0x1A);
const int ip = *reinterpret_cast<const int*>(packet + 0x16);
const int y = *reinterpret_cast<const std::int16_t*>(packet + 0x14);
const int x = *reinterpret_cast<const std::int16_t*>(packet + 0x12);
const std::string host(reinterpret_cast<const char*>(packet + 0x1C), reinterpret_cast<const char*>(packet + 0x9C));
const std::string mapName(reinterpret_cast<const char*>(packet + 2), reinterpret_cast<const char*>(packet + 0x12));
this->ChangeZoneServer(mapName.c_str(), x, y, ip, port, host.c_str());
this->ChangeZoneServer(std::string(reinterpret_cast<const char*>(packet + 2), reinterpret_cast<const char*>(packet + 0x12)).c_str(), x, y, ip, port, host.c_str());
}
// OFFSET: 0x00D08110