Decompile fn_21850 (CGameMode::ReceiveVendingItemSoldNow)
Batch #7981 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_21850 CGameMode::ReceiveVendingItemSoldNow: logic confirmed by peer review Peer-reviewed-by: Yommy, pedrao 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
6dd5a328d4
commit
24bd8692f1
2 changed files with 11 additions and 0 deletions
|
|
@ -3067,6 +3067,15 @@ static void FillVendingItem(ITEM_INFO& item, const VendingItemRecord2& record) {
|
|||
item.unknown_0070 = record.sprite;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00D47720
|
||||
// FUNCTION: fn_21850
|
||||
void CGameMode::ReceiveVendingItemSoldNow(const unsigned char* data) {
|
||||
const int itemId = *reinterpret_cast<const int*>(data + 2);
|
||||
const short quantity = *reinterpret_cast<const short*>(data + 6);
|
||||
const int field8 = *reinterpret_cast<const int*>(data + 8);
|
||||
sub_D08670(static_cast<int>(_time32(nullptr)), itemId, quantity, field8, 0, 0);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00D70790
|
||||
|
||||
// OFFSET: 0x00D6C410
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue