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

Function On_PLRDEAD

Source/msg.cpp:2151–2163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2149}
2150
2151DWORD On_PLRDEAD(TCmd *pCmd, int pnum)
2152{
2153 TCmdParam1 *p = (TCmdParam1 *)pCmd;
2154
2155 if (gbBufferMsgs == 1)
2156 msg_send_packet(pnum, p, sizeof(*p));
2157 else if (pnum != myplr)
2158 StartPlayerKill(pnum, p->wParam1);
2159 else
2160 check_update_plr(pnum);
2161
2162 return sizeof(*p);
2163}
2164
2165DWORD On_PLRDAMAGE(TCmd *pCmd, int pnum)
2166{

Callers 1

ParseCmdFunction · 0.85

Calls 3

msg_send_packetFunction · 0.85
StartPlayerKillFunction · 0.85
check_update_plrFunction · 0.85

Tested by

no test coverage detected