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

Function On_WARP

Source/msg.cpp:2056–2071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2054}
2055
2056DWORD On_WARP(TCmd *pCmd, int pnum)
2057{
2058 TCmdParam1 *p = (TCmdParam1 *)pCmd;
2059
2060 if (gbBufferMsgs == 1)
2061 msg_send_packet(pnum, p, sizeof(*p));
2062 else {
2063 StartWarpLvl(pnum, p->wParam1);
2064 if (pnum == myplr && pcurs >= CURSOR_FIRSTITEM) {
2065 item[MAXITEMS] = plr[myplr].HoldItem;
2066 AutoGetItem(myplr, MAXITEMS);
2067 }
2068 }
2069
2070 return sizeof(*p);
2071}
2072
2073DWORD On_MONSTDEATH(TCmd *pCmd, int pnum)
2074{

Callers 1

ParseCmdFunction · 0.85

Calls 3

msg_send_packetFunction · 0.85
StartWarpLvlFunction · 0.85
AutoGetItemFunction · 0.85

Tested by

no test coverage detected