mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove unused function network_close
This commit is contained in:
parent
0960413927
commit
4ece997ff3
|
@ -3214,11 +3214,6 @@ void NetworkBase::Client_Handle_GAMEINFO([[maybe_unused]] NetworkConnection& con
|
|||
network_chat_show_server_greeting();
|
||||
}
|
||||
|
||||
void network_close()
|
||||
{
|
||||
OpenRCT2::GetContext()->GetNetwork().Close();
|
||||
}
|
||||
|
||||
void network_reconnect()
|
||||
{
|
||||
OpenRCT2::GetContext()->GetNetwork().Reconnect();
|
||||
|
@ -4214,9 +4209,6 @@ void network_send_chat(const char* text, const std::vector<uint8_t>& playerIds)
|
|||
void network_send_password(const std::string& password)
|
||||
{
|
||||
}
|
||||
void network_close()
|
||||
{
|
||||
}
|
||||
void network_reconnect()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -35,7 +35,6 @@ enum class ModifyGroupType : uint8_t;
|
|||
enum class PermissionState : uint8_t;
|
||||
enum class NetworkPermission : uint32_t;
|
||||
|
||||
void network_close();
|
||||
void network_reconnect();
|
||||
void network_shutdown_client();
|
||||
int32_t network_begin_client(const std::string& host, int32_t port);
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "../interface/Viewport.h"
|
||||
#include "../interface/Window.h"
|
||||
#include "../localisation/Localisation.h"
|
||||
#include "../network/NetworkBase.h"
|
||||
#include "../network/network.h"
|
||||
#include "../scenario/Scenario.h"
|
||||
#include "../scenario/ScenarioRepository.h"
|
||||
|
@ -124,7 +125,7 @@ void TitleScreen::Load()
|
|||
gScreenAge = 0;
|
||||
gCurrentLoadedPath = "";
|
||||
|
||||
network_close();
|
||||
GetContext()->GetNetwork().Close();
|
||||
OpenRCT2::Audio::StopAll();
|
||||
GetContext()->GetGameState()->InitAll(150);
|
||||
viewport_init_all();
|
||||
|
|
Loading…
Reference in New Issue