Decompile fn_22186 (CGameMode::ReceiveUnknown16FC588)

Batch #5351 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review.

- fn_22186 CGameMode::ReceiveUnknown16FC588: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, alisonrag, tayoba
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-30 11:20:24 +00:00
commit ff78425bd0
2 changed files with 32 additions and 0 deletions

View file

@ -186,6 +186,7 @@ public:
void IgnoreRemovedPacket3(const unsigned char* packet);
void IgnoreRemovedPacket4(const unsigned char* packet);
void IgnoreRemovedPacket5(const unsigned char* packet);
void IgnoreRemovedPacket7(const unsigned char* packet);
void ReceiveItem1738Add(const unsigned char* packet);
void ReceiveItem1738AddOptions(const unsigned char* packet);
void ReceiveItem1738AddGrade(const unsigned char* packet);
@ -194,6 +195,8 @@ public:
void ReceiveItem1740AddGrade(const unsigned char* packet);
void ReceiveUnknown05C4Result(const unsigned char* packet);
void ReceiveHpSpRecovery(const unsigned char* packet, int variant);
void ReceiveUnknown173A5BC(const unsigned char* packet);
void ReceiveUnknown16FC588(const unsigned char* packet);
void StepTowardWalkableCell(const int& targetX, const int& targetY, int& x, int& y);
void FindWalkableCellToward(float x, float z, float originX, float originZ, int& column, int& row, int distance);
void RemoveMiniMapPing(std::uint32_t id);

View file

@ -535,3 +535,32 @@ void CGameMode::ReceiveHpSpRecovery(const unsigned char* packet, int variant) {
}
}
}
// GLOBAL: gl_24965
int g_unknown173A5BC;
// OFFSET: 0x00D50580
// FUNCTION: fn_21884
void CGameMode::IgnoreRemovedPacket7(const unsigned char*) {
}
// OFFSET: 0x00D79420
// FUNCTION: fn_22167
void CGameMode::ReceiveUnknown173A5BC(const unsigned char* packet) {
const int value = *reinterpret_cast<const int*>(packet + 2);
if (value > 0) {
g_unknown173A5BC = value;
}
}
// GLOBAL: gl_24967
int g_unknown16FC588;
// OFFSET: 0x00D7A0B0
// FUNCTION: fn_22186
void CGameMode::ReceiveUnknown16FC588(const unsigned char* packet) {
const signed char value = *reinterpret_cast<const signed char*>(packet + 2);
if (value != 1 && value != 2) {
g_unknown16FC588 = 0;
}
}