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

Function On_ADDMAG

Source/msg.cpp:1319–1329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1317}
1318
1319DWORD On_ADDMAG(TCmd *pCmd, int pnum)
1320{
1321 TCmdParam1 *p = (TCmdParam1 *)pCmd;
1322
1323 if (gbBufferMsgs == 1)
1324 msg_send_packet(pnum, p, sizeof(*p));
1325 else if (p->wParam1 <= 256)
1326 ModifyPlrMag(pnum, p->wParam1);
1327
1328 return sizeof(*p);
1329}
1330
1331DWORD On_ADDDEX(TCmd *pCmd, int pnum)
1332{

Callers 1

ParseCmdFunction · 0.85

Calls 2

msg_send_packetFunction · 0.85
ModifyPlrMagFunction · 0.85

Tested by

no test coverage detected