diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 10:31:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 10:31:03 +0300 |
commit | 9cdbed6c562f95e24e02f49630386f8b18884a02 (patch) | |
tree | 4dad8316607387c80b66cf42b2a806ffa1a3afed /src/client.cpp | |
parent | 3a7313c027407e3b35360a021c72fe78f181d81d (diff) | |
download | ManaVerse-9cdbed6c562f95e24e02f49630386f8b18884a02.tar.gz ManaVerse-9cdbed6c562f95e24e02f49630386f8b18884a02.tar.bz2 ManaVerse-9cdbed6c562f95e24e02f49630386f8b18884a02.tar.xz ManaVerse-9cdbed6c562f95e24e02f49630386f8b18884a02.zip |
Remove getter for gameHandler.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/client.cpp b/src/client.cpp index 8f0827d44..3758056a6 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -816,7 +816,7 @@ int Client::gameExec() BLOCK_START("Client::gameExec 6") if (mState == STATE_CONNECT_GAME && - Net::getGameHandler()->isConnected()) + gameHandler->isConnected()) { Net::getLoginHandler()->disconnect(); } @@ -939,7 +939,7 @@ int Client::gameExec() BLOCK_END("Client::gameExec 6") if (mState == STATE_SWITCH_LOGIN && mOldState == STATE_GAME) - Net::getGameHandler()->disconnect(); + gameHandler->disconnect(); if (mState != mOldState) { @@ -1315,7 +1315,7 @@ int Client::gameExec() _("Connecting to the game server"), STATE_CHOOSE_SERVER); mCurrentDialog->postInit(); - Net::getGameHandler()->connect(); + gameHandler->connect(); BLOCK_END("Client::gameExec STATE_CONNECT_GAME") break; @@ -1327,7 +1327,7 @@ int Client::gameExec() _("Changing game servers"), STATE_SWITCH_CHARACTER); mCurrentDialog->postInit(); - Net::getGameHandler()->connect(); + gameHandler->connect(); BLOCK_END("Client::gameExec STATE_CHANGE_MAP") break; @@ -1519,8 +1519,8 @@ int Client::gameExec() logger->log1("State: SWITCH SERVER"); Net::getLoginHandler()->disconnect(); - Net::getGameHandler()->disconnect(); - Net::getGameHandler()->clear(); + gameHandler->disconnect(); + gameHandler->clear(); settings.serverName.clear(); serverConfig.write(); serverConfig.unload(); @@ -1537,7 +1537,7 @@ int Client::gameExec() Net::getLoginHandler()->logout(); Net::getLoginHandler()->disconnect(); - Net::getGameHandler()->disconnect(); + gameHandler->disconnect(); Net::getLoginHandler()->connect(); mState = STATE_LOGIN; @@ -1549,7 +1549,7 @@ int Client::gameExec() logger->log1("State: SWITCH CHARACTER"); // Done with game - Net::getGameHandler()->disconnect(); + gameHandler->disconnect(); mState = STATE_GET_CHARACTERS; BLOCK_END("Client::gameExec STATE_SWITCH_CHARACTER") @@ -1593,7 +1593,7 @@ int Client::gameExec() true); mCurrentDialog->addActionListener(&errorListener); mCurrentDialog = nullptr; // OkDialog deletes itself - Net::getGameHandler()->disconnect(); + gameHandler->disconnect(); BLOCK_END("Client::gameExec STATE_ERROR") break; |