=============== idSessionLocal::Stop called on errors and game exits =============== */
| 407 | =============== |
| 408 | */ |
| 409 | void 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 | =============== |
no test coverage detected