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).
This commit is contained in:
ragnarok-clanker 2026-10-31 01:58:53 +00:00
commit a2ea949dc1

View file

@ -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<const std::uint16_t*>(entries) != 0) {
++count;
}
if (*reinterpret_cast<const std::uint16_t*>(entries + 5) != 0) {
++count;
}
if (*reinterpret_cast<const std::uint16_t*>(entries + 10) != 0) {
++count;
}
if (*reinterpret_cast<const std::uint16_t*>(entries + 15) != 0) {
++count;
}
if (*reinterpret_cast<const std::uint16_t*>(entries + 20) != 0) {
++count;
}
return count;
}