From 53c30755ca7a3810a5b2c596e46a4d08b8ea3f59 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 08:08:31 +0000 Subject: [PATCH] Decompile fn_21662 (CGameMode::ReceiveItemObtainBroadcast) Batch #14013 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_21662 CGameMode::ReceiveItemObtainBroadcast: logic confirmed by peer review Peer-reviewed-by: secret, KWDev, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Mode/GameModePackets.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Client/Mode/GameModePackets.cpp b/Source/Client/Mode/GameModePackets.cpp index 53a76dc69..2c093c136 100644 --- a/Source/Client/Mode/GameModePackets.cpp +++ b/Source/Client/Mode/GameModePackets.cpp @@ -15665,16 +15665,16 @@ void CGameMode::ReceiveItemObtainBroadcast(const unsigned char* data, bool packa item.identified = 1; std::string text; if (data[4] == 2) { - text = FormatOwnedString(LookupMessage(0x74C), name.c_str(), item.DisplayName(0).c_str()); + text = static_cast(FormatOwnedString(LookupMessage(0x74C), name.c_str(), item.DisplayName(0).c_str())); } else if (package && data[4] == 0) { const int count = *reinterpret_cast(tail + 16); if (count > 0) { - text = FormatOwnedString(LookupMessage(0xF91), name.c_str(), source.c_str(), count, item.DisplayName(0).c_str()); + text = static_cast(FormatOwnedString(LookupMessage(0xF91), name.c_str(), source.c_str(), count, item.DisplayName(0).c_str())); } else { - text = FormatOwnedString(LookupMessage(0x65C), name.c_str(), source.c_str(), item.DisplayName(0).c_str()); + text = static_cast(FormatOwnedString(LookupMessage(0x65C), name.c_str(), source.c_str(), item.DisplayName(0).c_str())); } } else { - text = FormatOwnedString(LookupMessage(0x65C), name.c_str(), source.c_str(), item.DisplayName(0).c_str()); + text = static_cast(FormatOwnedString(LookupMessage(0x65C), name.c_str(), source.c_str(), item.DisplayName(0).c_str())); } g_windowMgr.SendNotice(1, reinterpret_cast(text.c_str()), 0xFFFF, 0, 0, 0);