| 127 | #endif // DEBUG |
| 128 | |
| 129 | void CLevel::net_Stop() |
| 130 | { |
| 131 | Msg("- Disconnect"); |
| 132 | bReady = false; |
| 133 | m_bGameConfigStarted = FALSE; |
| 134 | game_configured = FALSE; |
| 135 | |
| 136 | remove_objects(); |
| 137 | |
| 138 | IGame_Level::net_Stop(); |
| 139 | IPureClient::Disconnect(); |
| 140 | |
| 141 | if (Server) |
| 142 | { |
| 143 | Server->Disconnect(); |
| 144 | xr_delete(Server); |
| 145 | } |
| 146 | |
| 147 | ai().script_engine().collect_all_garbage(); |
| 148 | |
| 149 | Remove_all_statics(); |
| 150 | |
| 151 | Memory.mem_compact(); |
| 152 | |
| 153 | #ifdef DEBUG |
| 154 | show_animation_stats(); |
| 155 | #endif // DEBUG |
| 156 | } |
| 157 | |
| 158 | void CLevel::ClientSend() |
| 159 | { |
nothing calls this directly
no test coverage detected