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

Function NetClose

Source/multi.cpp:555–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

553}
554
555void NetClose()
556{
557 if (!sgbNetInited) {
558 return;
559 }
560
561 sgbNetInited = FALSE;
562 nthread_cleanup();
563 dthread_cleanup();
564 tmsg_cleanup();
565 multi_event_handler(FALSE);
566 SNetLeaveGame(3);
567 if (gbMaxPlayers > 1)
568 SDL_Delay(2000);
569}
570
571void multi_event_handler(BOOL add)
572{

Callers 3

NetInitFunction · 0.85
StartGameFunction · 0.85
init_cleanupFunction · 0.85

Calls 5

nthread_cleanupFunction · 0.85
dthread_cleanupFunction · 0.85
tmsg_cleanupFunction · 0.85
multi_event_handlerFunction · 0.85
SNetLeaveGameFunction · 0.85

Tested by

no test coverage detected