MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Stop

Method Stop

neo/framework/Session.cpp:409–430  ·  view source on GitHub ↗

=============== idSessionLocal::Stop called on errors and game exits =============== */

Source from the content-addressed store, hash-verified

407===============
408*/
409void idSessionLocal::Stop() {
410 ClearWipe();
411
412 // clear mapSpawned and demo playing flags
413 UnloadMap();
414
415 // disconnect async client
416 idAsyncNetwork::client.DisconnectFromServer();
417
418 // kill async server
419 idAsyncNetwork::server.Kill();
420
421 if ( sw ) {
422 sw->StopAllSounds();
423 }
424
425 insideUpdateScreen = false;
426 insideExecuteMapChange = false;
427
428 // drop all guis
429 SetGUI( NULL, NULL );
430}
431
432/*
433===============

Callers 7

Session_Disconnect_fFunction · 0.45
ErrorMethod · 0.45
SpawnMethod · 0.45
KillMethod · 0.45
ConnectToServerMethod · 0.45

Calls 3

DisconnectFromServerMethod · 0.80
StopAllSoundsMethod · 0.80
KillMethod · 0.45

Tested by

no test coverage detected