MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Disconnect

Method Disconnect

ogsr_engine/xrGame/GamePersistent.cpp:162–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void 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

Callers 1

net_StopMethod · 0.45

Calls 3

DestroyFunction · 0.85
stop_emittersMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected