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

Function On_PLRLEVEL

Source/msg.cpp:2295–2305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2293}
2294
2295DWORD On_PLRLEVEL(TCmd *pCmd, int pnum)
2296{
2297 TCmdParam1 *p = (TCmdParam1 *)pCmd;
2298
2299 if (gbBufferMsgs == 1)
2300 msg_send_packet(pnum, p, sizeof(*p));
2301 else if (p->wParam1 <= MAXCHARLEVEL && pnum != myplr)
2302 plr[pnum]._pLevel = p->wParam1;
2303
2304 return sizeof(*p);
2305}
2306
2307DWORD On_DROPITEM(TCmd *pCmd, int pnum)
2308{

Callers 1

ParseCmdFunction · 0.85

Calls 1

msg_send_packetFunction · 0.85

Tested by

no test coverage detected