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

Function On_DROPITEM

Source/msg.cpp:2307–2317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2305}
2306
2307DWORD On_DROPITEM(TCmd *pCmd, int pnum)
2308{
2309 TCmdPItem *p = (TCmdPItem *)pCmd;
2310
2311 if (gbBufferMsgs == 1)
2312 msg_send_packet(pnum, p, sizeof(*p));
2313 else
2314 delta_put_item(p, p->x, p->y, plr[pnum].plrlevel);
2315
2316 return sizeof(*p);
2317}
2318
2319DWORD On_SEND_PLRINFO(TCmd *pCmd, int pnum)
2320{

Callers 1

ParseCmdFunction · 0.85

Calls 2

msg_send_packetFunction · 0.85
delta_put_itemFunction · 0.85

Tested by

no test coverage detected