benilla-re systems structs docs

CGTradeInfo::TargetAccept

function · ui · orchestration

Address
0x4bf280 · 40 bytes, up to 0x4bf2a7
Signature
void __thiscall (CGTradeInfo *this)
Meaning
Sets the partner's accept flag and signals TRADE_ACCEPT_UPDATE on a change
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/trade#accept-flags

Finding: Accept flags in ui: trade requests and status messages

Two flags hold the accept state: the player's (0xb71730) and the partner's (0xb71734). 0x4bf230(flag) and 0x4bf280(flag) set them and signal TRADE_ACCEPT_UPDATE (0x142) with both flags, player first, only when the flag changes. Status 4 sets the partner's flag; status 9 clears it. Status 7 clears the player's, then the partner's, so it can signal twice. A change of the player's flag also sends CMSG_ACCEPT_TRADE (0x11a) or CMSG_UNACCEPT_TRADE (0x11b); AcceptTrade() and CancelTradeAccept() set it, and a new partner offer clears both flags.

The derivation is in the doc.

Callers 2

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.