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

Function dp_EndGame

networking/directplay.cpp:274–281  ·  view source on GitHub ↗

Everyone should call this when leaving the game.

Source from the content-addressed store, hash-verified

272
273// Everyone should call this when leaving the game.
274void dp_EndGame() {
275 mprintf(0, "Ending DirectPlay game.\n");
276 if ((!DP_active) || (!lpDirectPlay4A))
277 return;
278 lpDirectPlay4A->Close();
279 lpDirectPlay4A->Release();
280 lpDirectPlay4A = NULL;
281}
282
283// This function gets called when a game is started, so Direcplay knows the title, and to listen
284int dp_StartGame(char *gamename) {

Callers 2

dp_StartGameFunction · 0.85
dp_DirectPlayJoinGameFunction · 0.85

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected