diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 22:00:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:16 +0300 |
commit | c2a7004213529c403faeb6fdcc374699aa2f53b5 (patch) | |
tree | f5701ef3412923bc0e5e033033bd52960d66acc3 /src/net/ea/loginhandler.cpp | |
parent | e8a4474319aca4a32869fa1ebb8b5ebbd98237f6 (diff) | |
download | mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.gz mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.bz2 mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.xz mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.zip |
improve getState/setState in Client.
Diffstat (limited to 'src/net/ea/loginhandler.cpp')
-rw-r--r-- | src/net/ea/loginhandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp index 2632aeb3b..fbe588b1f 100644 --- a/src/net/ea/loginhandler.cpp +++ b/src/net/ea/loginhandler.cpp @@ -61,7 +61,7 @@ bool LoginHandler::isRegistrationEnabled() const void LoginHandler::getRegistrationDetails() const { // Not supported, so move on - Client::setState(STATE_REGISTER); + client->setState(STATE_REGISTER); } void LoginHandler::loginAccount(LoginData *const loginData) const @@ -93,7 +93,7 @@ void LoginHandler::chooseServer(const unsigned int server) const charServer->port = mWorlds[server]->port; } - Client::setState(STATE_UPDATE); + client->setState(STATE_UPDATE); } void LoginHandler::registerAccount(LoginData *const loginData) const @@ -139,7 +139,7 @@ void LoginHandler::procecessCharPasswordResponse(Net::MessageIn &msg) const // Successful pass change if (errMsg == 1) { - Client::setState(STATE_CHANGEPASSWORD_SUCCESS); + client->setState(STATE_CHANGEPASSWORD_SUCCESS); } // pass change failed else @@ -164,7 +164,7 @@ void LoginHandler::procecessCharPasswordResponse(Net::MessageIn &msg) const errorMessage = _("Unknown error."); break; } - Client::setState(STATE_ACCOUNTCHANGE_ERROR); + client->setState(STATE_ACCOUNTCHANGE_ERROR); } } @@ -222,7 +222,7 @@ void LoginHandler::processLoginData(Net::MessageIn &msg) mWorlds.push_back(world); } - Client::setState(STATE_WORLD_SELECT); + client->setState(STATE_WORLD_SELECT); } void LoginHandler::processLoginError(Net::MessageIn &msg) const @@ -291,7 +291,7 @@ void LoginHandler::processLoginError(Net::MessageIn &msg) const errorMessage = _("Unknown error."); break; } - Client::setState(STATE_ERROR); + client->setState(STATE_ERROR); } void LoginHandler::logout() const |