summaryrefslogtreecommitdiff
path: root/src/net/eathena/gamehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/gamehandler.cpp')
-rw-r--r--src/net/eathena/gamehandler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp
index dde0a10d5..9b2756058 100644
--- a/src/net/eathena/gamehandler.cpp
+++ b/src/net/eathena/gamehandler.cpp
@@ -110,10 +110,10 @@ void GameHandler::mapLoadedEvent() const
void GameHandler::connect()
{
- if (!mNetwork)
+ if (!Network::mInstance)
return;
- mNetwork->connect(mapServer);
+ Network::mInstance->connect(mapServer);
const Token &token = static_cast<LoginHandler*>(loginHandler)->getToken();
@@ -149,20 +149,20 @@ void GameHandler::connect()
}
*/
// We get 4 useless bytes before the real answer comes in (what are these?)
-// mNetwork->skip(4);
+// Network::mInstance->skip(4);
}
bool GameHandler::isConnected() const
{
- if (!mNetwork)
+ if (!Network::mInstance)
return false;
- return mNetwork->isConnected();
+ return Network::mInstance->isConnected();
}
void GameHandler::disconnect()
{
- if (mNetwork)
- mNetwork->disconnect();
+ if (Network::mInstance)
+ Network::mInstance->disconnect();
}
void GameHandler::quit() const