summaryrefslogtreecommitdiff
path: root/src/net/net.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 11:03:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 11:03:22 +0300
commitdfaae6f6e804e7779ade870a211a1a14d3a5d9aa (patch)
treea7652f4e548e166b39a8203e27c890c02c62d5ca /src/net/net.cpp
parentfd050698f74b5dc7a9867bc93ba6b7c65ef2462f (diff)
downloadManaVerse-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.gz
ManaVerse-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.bz2
ManaVerse-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.tar.xz
ManaVerse-dfaae6f6e804e7779ade870a211a1a14d3a5d9aa.zip
Remove getter for loginHandler.
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r--src/net/net.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index ed81a42ec..06768cb43 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -51,6 +51,7 @@ namespace Net
class GeneralHandler;
class GuildHandler;
class InventoryHandler;
+ class LoginHandler;
}
Net::AdminHandler *adminHandler = nullptr;
@@ -76,11 +77,6 @@ Net::CashShopHandler *cashShopHandler = nullptr;
Net::FamilyHandler *familyHandler = nullptr;
Net::BankHandler *bankHandler = nullptr;
-Net::LoginHandler *Net::getLoginHandler()
-{
- return loginHandler;
-}
-
Net::NpcHandler *Net::getNpcHandler()
{
return npcHandler;
@@ -164,10 +160,10 @@ void connectToServer(const ServerInfo &server)
networkType = server.type;
}
- if (getLoginHandler())
+ if (loginHandler)
{
- getLoginHandler()->setServer(server);
- getLoginHandler()->connect();
+ loginHandler->setServer(server);
+ loginHandler->connect();
}
BLOCK_END("Net::connectToServer")
}