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

Function On_PLROPOBJ

Source/msg.cpp:2241–2254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2239}
2240
2241DWORD On_PLROPOBJ(TCmd *pCmd, int pnum)
2242{
2243 TCmdParam2 *p = (TCmdParam2 *)pCmd;
2244
2245 if (gbBufferMsgs == 1)
2246 msg_send_packet(pnum, p, sizeof(*p));
2247 else {
2248 if (currlevel == plr[pnum].plrlevel)
2249 SyncOpObject(p->wParam1, CMD_PLROPOBJ, p->wParam2);
2250 delta_sync_object(p->wParam2, CMD_PLROPOBJ, plr[pnum].plrlevel);
2251 }
2252
2253 return sizeof(*p);
2254}
2255
2256DWORD On_BREAKOBJ(TCmd *pCmd, int pnum)
2257{

Callers 1

ParseCmdFunction · 0.85

Calls 3

msg_send_packetFunction · 0.85
SyncOpObjectFunction · 0.85
delta_sync_objectFunction · 0.85

Tested by

no test coverage detected