From ebbda1f8239af4ba7da3ce3e09115310c322d0ab Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 16:56:39 +0000 Subject: [PATCH] Decompile fn_22188 (CGameMode::ReceiveWindow308TextEntries) Batch #12524 by Toshiro: 0 byte-identical, 1 confirmed by peer review. - fn_22188 CGameMode::ReceiveWindow308TextEntries: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Mode/GameModePackets.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index a0aac722..47ab6f5c 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -2693,7 +2693,10 @@ __declspec(noinline) void CGameMode::ReceiveWindow308TextEntries(unsigned char* char* text = reinterpret_cast(packet + 4); for (int i = 0; i < count; ++i, text += 16) { text[15] = '\0'; - if (std::strlen(text) != 0) { + char* end = text; + do { + } while (*end++ != '\0'); + if (*text != '\0') { window->SendMsg(nullptr, 0x22, reinterpret_cast(text), 0, 0, 0); } }