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

Function On_ADDSTR

Source/msg.cpp:1307–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1305}
1306
1307DWORD On_ADDSTR(TCmd *pCmd, int pnum)
1308{
1309 TCmdParam1 *p = (TCmdParam1 *)pCmd;
1310
1311 if (gbBufferMsgs == 1)
1312 msg_send_packet(pnum, p, sizeof(*p));
1313 else if (p->wParam1 <= 256)
1314 ModifyPlrStr(pnum, p->wParam1);
1315
1316 return sizeof(*p);
1317}
1318
1319DWORD On_ADDMAG(TCmd *pCmd, int pnum)
1320{

Callers 1

ParseCmdFunction · 0.85

Calls 2

msg_send_packetFunction · 0.85
ModifyPlrStrFunction · 0.85

Tested by

no test coverage detected