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

Function tmsg_add

Source/tmsg.cpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void tmsg_add(BYTE *pbMsg, BYTE bLen)
27{
28 TMsg **tail;
29
30 TMsg *msg = (TMsg *)DiabloAllocPtr(bLen + sizeof(*msg));
31 msg->hdr.pNext = NULL;
32 msg->hdr.dwTime = SDL_GetTicks() + 500;
33 msg->hdr.bLen = bLen;
34 memcpy(msg->body, pbMsg, bLen);
35 for (tail = &sgpTimedMsgHead; *tail; tail = &(*tail)->hdr.pNext) {
36 ;
37 }
38 *tail = msg;
39}
40
41void tmsg_start()
42{

Callers 1

multi_msg_addFunction · 0.85

Calls 1

DiabloAllocPtrFunction · 0.85

Tested by

no test coverage detected