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

Function On_STRING2

Source/msg.cpp:2503–2512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2501}
2502
2503DWORD On_STRING2(int pnum, TCmd *pCmd)
2504{
2505 TCmdString *p = (TCmdString *)pCmd;
2506
2507 int len = strlen(p->str);
2508 if (!gbBufferMsgs)
2509 SendPlrMsg(pnum, p->str);
2510
2511 return len + 2; // length of string + nul terminator + sizeof(p->bCmd)
2512}
2513
2514DWORD On_SYNCQUEST(TCmd *pCmd, int pnum)
2515{

Callers 1

On_STRINGFunction · 0.85

Calls 1

SendPlrMsgFunction · 0.85

Tested by

no test coverage detected