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

Method net_Stop

ogsr_engine/xrGame/Level_network.cpp:129–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127#endif // DEBUG
128
129void 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
158void CLevel::ClientSend()
159{

Callers

nothing calls this directly

Calls 7

MsgFunction · 0.85
xr_deleteFunction · 0.85
Remove_all_staticsFunction · 0.85
show_animation_statsFunction · 0.85
collect_all_garbageMethod · 0.80
mem_compactMethod · 0.80
DisconnectMethod · 0.45

Tested by

no test coverage detected