MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetChatCommandFromQueue

Function GetChatCommandFromQueue

netcon/mtclient/chat_api.cpp:1038–1049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036}
1037
1038Chat_command *GetChatCommandFromQueue() {
1039 static Chat_command response_cmd;
1040 Chat_command *tmp_cmd;
1041 if (!Firstcommand)
1042 return nullptr;
1043 Currcommand = Firstcommand;
1044 memcpy(&response_cmd, Currcommand, sizeof(Chat_command));
1045 tmp_cmd = Currcommand->next;
1046 DLLmem_free(Firstcommand);
1047 Firstcommand = tmp_cmd;
1048 return &response_cmd;
1049}
1050
1051void FlushChatCommandQueue() {
1052 Chat_command *tmp_cmd;

Callers 2

MainMultiplayerMenuFunction · 0.85
GetChatCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected