From a2ea949dc1fd2a146cd3f461ad7ea8388a01a3c3 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 01:58:53 +0000 Subject: [PATCH] Decompile 2 functions in Source/Client/Mode/GameModePackets.cpp Batch #6849 by superintelligence: 1 byte-identical, 1 confirmed by peer review. - fn_21994 Nullsub479: byte-identical - fn_21996 sub_D64A40: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Mode/GameModePackets.cpp | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index 777100bc..999d0c04 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -1640,3 +1640,30 @@ void CGameMode::ReceiveItemInventoryList(const unsigned char* data) { RefreshItemWindows(&g_windowMgr); } + +// OFFSET: 0x00D64930 +// FUNCTION: fn_21994 +void __stdcall Nullsub479(int value) { +} + +// OFFSET: 0x00D64A40 +// FUNCTION: fn_21996 +int sub_D64A40(const unsigned char* entries) { + int count = 0; + if (*reinterpret_cast(entries) != 0) { + ++count; + } + if (*reinterpret_cast(entries + 5) != 0) { + ++count; + } + if (*reinterpret_cast(entries + 10) != 0) { + ++count; + } + if (*reinterpret_cast(entries + 15) != 0) { + ++count; + } + if (*reinterpret_cast(entries + 20) != 0) { + ++count; + } + return count; +}