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

Function msg_get_next_packet

Source/msg.cpp:54–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54TMegaPkt *msg_get_next_packet()
55{
56 TMegaPkt *result;
57
58 sgpCurrPkt = (TMegaPkt *)DiabloAllocPtr(sizeof(TMegaPkt));
59 sgpCurrPkt->pNext = NULL;
60 sgpCurrPkt->dwSpaceLeft = 32000;
61
62 result = (TMegaPkt *)&sgpMegaPkt;
63 while (result->pNext) {
64 result = result->pNext;
65 }
66 result->pNext = sgpCurrPkt;
67
68 return result;
69}
70
71BOOL msg_wait_resync()
72{

Callers 2

msg_send_packetFunction · 0.85
msg_wait_resyncFunction · 0.85

Calls 1

DiabloAllocPtrFunction · 0.85

Tested by

no test coverage detected