diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-02 03:12:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-02 03:12:14 +0300 |
commit | 40730c4fa73d403cf7284a76d9b26f7ec662afa4 (patch) | |
tree | 3bf9dce3ca6297a06193cdcc19cfdfa914fc48b2 /src/net/eathena/loginhandler.cpp | |
parent | ab8c8cdae07d96cb18276a95b41ddb856c864958 (diff) | |
download | plus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.tar.gz plus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.tar.bz2 plus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.tar.xz plus-40730c4fa73d403cf7284a76d9b26f7ec662afa4.zip |
Remove mNetwork field from MessageHandlers
Diffstat (limited to 'src/net/eathena/loginhandler.cpp')
-rw-r--r-- | src/net/eathena/loginhandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index cca2a90eb..9376d24b5 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -105,10 +105,10 @@ void LoginHandler::handleMessage(Net::MessageIn &msg) void LoginHandler::connect() { - if (!mNetwork) + if (!Network::mInstance) return; - mNetwork->connect(mServer); + Network::mInstance->connect(mServer); if (serverFeatures->haveServerVersion()) { sendVersion(); @@ -122,16 +122,16 @@ void LoginHandler::connect() bool LoginHandler::isConnected() const { - if (!mNetwork) + if (!Network::mInstance) return false; - return mNetwork->isConnected(); + return Network::mInstance->isConnected(); } void LoginHandler::disconnect() { - if (mNetwork && mNetwork->getServer() == mServer) - mNetwork->disconnect(); + if (Network::mInstance && Network::mInstance->getServer() == mServer) + Network::mInstance->disconnect(); } void LoginHandler::changePassword(const std::string &restrict oldPassword, |