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).
This commit is contained in:
parent
9d36085db3
commit
53c30755ca
1 changed files with 4 additions and 4 deletions
|
|
@ -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<const std::string&>(FormatOwnedString(LookupMessage(0x74C), name.c_str(), item.DisplayName(0).c_str()));
|
||||
} else if (package && data[4] == 0) {
|
||||
const int count = *reinterpret_cast<const int*>(tail + 16);
|
||||
if (count > 0) {
|
||||
text = FormatOwnedString(LookupMessage(0xF91), name.c_str(), source.c_str(), count, item.DisplayName(0).c_str());
|
||||
text = static_cast<const std::string&>(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<const std::string&>(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<const std::string&>(FormatOwnedString(LookupMessage(0x65C), name.c_str(), source.c_str(), item.DisplayName(0).c_str()));
|
||||
}
|
||||
|
||||
g_windowMgr.SendNotice(1, reinterpret_cast<std::intptr_t>(text.c_str()), 0xFFFF, 0, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue