From 95fe4670e62e1cf03c199079975874edd2ebbf02 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 9 Nov 2026 21:04:14 +0000 Subject: [PATCH] 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). --- Source/Client/Mode/GameModePackets.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index 444179009..f72628cbf 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -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(packet + 0x12); - const int y = *reinterpret_cast(packet + 0x14); - const int ip = *reinterpret_cast(packet + 0x16); const int port = *reinterpret_cast(packet + 0x1A); + const int ip = *reinterpret_cast(packet + 0x16); + const int y = *reinterpret_cast(packet + 0x14); + const int x = *reinterpret_cast(packet + 0x12); const std::string host(reinterpret_cast(packet + 0x1C), reinterpret_cast(packet + 0x9C)); - const std::string mapName(reinterpret_cast(packet + 2), reinterpret_cast(packet + 0x12)); - this->ChangeZoneServer(mapName.c_str(), x, y, ip, port, host.c_str()); + this->ChangeZoneServer(std::string(reinterpret_cast(packet + 2), reinterpret_cast(packet + 0x12)).c_str(), x, y, ip, port, host.c_str()); } // OFFSET: 0x00D08110