summaryrefslogtreecommitdiff
path: root/src/net/net.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-03 14:50:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-03 14:50:53 +0300
commitd05183a9029d65224f73143a380f1631692a9257 (patch)
treeb6666dea4c4a37c072826a6ec62955dad8812415 /src/net/net.cpp
parentb643a5c48d53dbeca7672e3c8b5182f9d698abcb (diff)
downloadmanaverse-d05183a9029d65224f73143a380f1631692a9257.tar.gz
manaverse-d05183a9029d65224f73143a380f1631692a9257.tar.bz2
manaverse-d05183a9029d65224f73143a380f1631692a9257.tar.xz
manaverse-d05183a9029d65224f73143a380f1631692a9257.zip
Convert ServerType enum into strong typed enum.
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r--src/net/net.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index f37914966..9b31499dd 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -115,7 +115,7 @@ Net::QuestHandler *questHandler = nullptr;
namespace Net
{
-ServerType::Type networkType = ServerType::UNKNOWN;
+ServerTypeT networkType = ServerType::UNKNOWN;
std::set<int> ignorePackets;
void connectToServer(const ServerInfo &server)
@@ -173,7 +173,7 @@ void unload()
ignorePackets.clear();
}
-ServerType::Type getNetworkType()
+ServerTypeT getNetworkType()
{
return networkType;
}