Decompile fn_21715 (CGameMode::ReceiveHuntingList)
Batch #16711 by bibinir: 1 byte-identical, 0 confirmed by peer review. - fn_21715 CGameMode::ReceiveHuntingList: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
a2a326b7f9
commit
94d133ddf5
1 changed files with 2 additions and 1 deletions
|
|
@ -1012,12 +1012,13 @@ __declspec(noinline) void CGameMode::ReceiveHomunculusProperty(const unsigned ch
|
|||
// FUNCTION: fn_21715
|
||||
__declspec(noinline) void CGameMode::ReceiveHuntingList(const unsigned char* packet) {
|
||||
char text[256];
|
||||
const unsigned char* data = packet + 4;
|
||||
int size = *reinterpret_cast<const short*>(packet + 2) - 4;
|
||||
if (size > 5000) {
|
||||
size = 5000;
|
||||
}
|
||||
char* list = new char[size + 1];
|
||||
std::memcpy(list, packet + 4, size);
|
||||
std::memcpy(list, data, size);
|
||||
list[size] = '\0';
|
||||
std::sprintf(text, "=========== HUNTING LIST =============");
|
||||
g_windowMgr.SendNotice(UIM_PUSHINTOCHATHISTORY, reinterpret_cast<std::intptr_t>(text), 0x9BCD9B, 0, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue