MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ~ServerNetworkGameSocketHandler

Method ~ServerNetworkGameSocketHandler

src/network/network_server.cpp:207–220  ·  view source on GitHub ↗

* Clear everything related to this client. */

Source from the content-addressed store, hash-verified

205 * Clear everything related to this client.
206 */
207ServerNetworkGameSocketHandler::~ServerNetworkGameSocketHandler()
208{
209 delete this->GetInfo();
210
211 if (_redirect_console_to_client == this->client_id) _redirect_console_to_client = INVALID_CLIENT_ID;
212 OrderBackup::ResetUser(this->client_id);
213
214 if (this->savegame != nullptr) {
215 this->savegame->Destroy();
216 this->savegame = nullptr;
217 }
218
219 InvalidateWindowData(WC_CLIENT_LIST, 0);
220}
221
222std::unique_ptr<Packet> ServerNetworkGameSocketHandler::ReceivePacket()
223{

Callers

nothing calls this directly

Calls 3

InvalidateWindowDataFunction · 0.50
GetInfoMethod · 0.45
DestroyMethod · 0.45

Tested by

no test coverage detected