MCPcopy Create free account
hub / github.com/diasurgical/devilution / On_CHANGEPLRITEMS

Function On_CHANGEPLRITEMS

Source/msg.cpp:2271–2281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2269}
2270
2271DWORD On_CHANGEPLRITEMS(TCmd *pCmd, int pnum)
2272{
2273 TCmdChItem *p = (TCmdChItem *)pCmd;
2274
2275 if (gbBufferMsgs == 1)
2276 msg_send_packet(pnum, p, sizeof(*p));
2277 else if (pnum != myplr)
2278 CheckInvSwap(pnum, p->bLoc, p->wIndx, p->wCI, p->dwSeed, p->bId);
2279
2280 return sizeof(*p);
2281}
2282
2283DWORD On_DELPLRITEMS(TCmd *pCmd, int pnum)
2284{

Callers 1

ParseCmdFunction · 0.85

Calls 2

msg_send_packetFunction · 0.85
CheckInvSwapFunction · 0.85

Tested by

no test coverage detected