| 724 | } |
| 725 | |
| 726 | void Host::ClearBeforeGameStart() |
| 727 | { |
| 728 | if( system_window_ != nullptr ) |
| 729 | system_window_->SetTitle( base_window_title_ ); |
| 730 | |
| 731 | if( client_ != nullptr ) |
| 732 | client_->SetConnection( nullptr ); |
| 733 | |
| 734 | if( local_server_ != nullptr ) |
| 735 | { |
| 736 | local_server_->DisconnectAllClients(); |
| 737 | local_server_->StopMap(); |
| 738 | } |
| 739 | |
| 740 | if( connections_listener_proxy_ != nullptr ) |
| 741 | connections_listener_proxy_->ClearConnectionsListeners(); |
| 742 | |
| 743 | if( loopback_buffer_ != nullptr ) |
| 744 | loopback_buffer_->RequestDisconnect(); |
| 745 | |
| 746 | // Force close menu before game start. |
| 747 | if( menu_ != nullptr ) |
| 748 | menu_->Deactivate(); |
| 749 | |
| 750 | is_single_player_= false; |
| 751 | paused_= false; |
| 752 | } |
| 753 | |
| 754 | } // namespace PanzerChasm |
nothing calls this directly
no test coverage detected