From 1db4d18ed1c04548ce8414adfb4e7cf830b39279 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Jan 2015 18:27:23 +0300 Subject: Move servertype enum into separate file. --- src/net/net.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/net/net.cpp') diff --git a/src/net/net.cpp b/src/net/net.cpp index 6c832e5f4..e744786cd 100644 --- a/src/net/net.cpp +++ b/src/net/net.cpp @@ -102,7 +102,7 @@ Net::MarketHandler *marketHandler = nullptr; namespace Net { -ServerInfo::Type networkType = ServerInfo::UNKNOWN; +ServerType::Type networkType = ServerType::UNKNOWN; std::set ignorePackets; void connectToServer(const ServerInfo &server) @@ -114,22 +114,22 @@ void connectToServer(const ServerInfo &server) } else { - if (networkType != ServerInfo::UNKNOWN && generalHandler) + if (networkType != ServerType::UNKNOWN && generalHandler) generalHandler->unload(); switch (server.type) { - case ServerInfo::EATHENA: - case ServerInfo::EVOL2: + case ServerType::EATHENA: + case ServerType::EVOL2: #ifdef EATHENA_SUPPORT new EAthena::GeneralHandler; #else new TmwAthena::GeneralHandler; #endif break; - case ServerInfo::TMWATHENA: - case ServerInfo::EVOL: - case ServerInfo::UNKNOWN: + case ServerType::TMWATHENA: + case ServerType::EVOL: + case ServerType::UNKNOWN: default: #ifdef TMWA_SUPPORT new TmwAthena::GeneralHandler; @@ -160,7 +160,7 @@ void unload() ignorePackets.clear(); } -ServerInfo::Type getNetworkType() +ServerType::Type getNetworkType() { return networkType; } -- cgit v1.2.3-70-g09d2