| 160 | } |
| 161 | |
| 162 | void CGamePersistent::Disconnect() |
| 163 | { |
| 164 | // destroy ambient particles |
| 165 | CParticlesObject::Destroy(ambient_particles); |
| 166 | |
| 167 | __super::Disconnect(); |
| 168 | // stop all played emitters |
| 169 | ::Sound->stop_emitters(); |
| 170 | |
| 171 | // validate and clean up spatial dbs |
| 172 | g_SpatialSpace->clear(); |
| 173 | g_SpatialSpacePhysic->clear(); |
| 174 | |
| 175 | m_game_params.m_e_game_type = GAME_ANY; |
| 176 | } |
| 177 | |
| 178 | #include "xr_level_controller.h" |
| 179 |
no test coverage detected