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

Function On_CLOSEDOOR

Source/msg.cpp:2211–2224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2209}
2210
2211DWORD On_CLOSEDOOR(TCmd *pCmd, int pnum)
2212{
2213 TCmdParam1 *p = (TCmdParam1 *)pCmd;
2214
2215 if (gbBufferMsgs == 1)
2216 msg_send_packet(pnum, p, sizeof(*p));
2217 else {
2218 if (currlevel == plr[pnum].plrlevel)
2219 SyncOpObject(pnum, CMD_CLOSEDOOR, p->wParam1);
2220 delta_sync_object(p->wParam1, CMD_CLOSEDOOR, plr[pnum].plrlevel);
2221 }
2222
2223 return sizeof(*p);
2224}
2225
2226DWORD On_OPERATEOBJ(TCmd *pCmd, int pnum)
2227{

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