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/gui/worldselectdialog.cpp | |
parent | e8a4474319aca4a32869fa1ebb8b5ebbd98237f6 (diff) | |
download | manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.gz manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.bz2 manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.xz manaverse-c2a7004213529c403faeb6fdcc374699aa2f53b5.zip |
improve getState/setState in Client.
Diffstat (limited to 'src/gui/worldselectdialog.cpp')
-rw-r--r-- | src/gui/worldselectdialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/worldselectdialog.cpp b/src/gui/worldselectdialog.cpp index e8ed35ab2..37dbbc3cf 100644 --- a/src/gui/worldselectdialog.cpp +++ b/src/gui/worldselectdialog.cpp @@ -141,12 +141,12 @@ void WorldSelectDialog::action(const gcn::ActionEvent &event) Net::getLoginHandler()->chooseServer(mWorldList->getSelected()); // Check in case netcode moves us forward - if (Client::getState() == STATE_WORLD_SELECT) - Client::setState(STATE_WORLD_SELECT_ATTEMPT); + if (client->getState() == STATE_WORLD_SELECT) + client->setState(STATE_WORLD_SELECT_ATTEMPT); } else if (eventId == "login") { - Client::setState(STATE_PRE_LOGIN); + client->setState(STATE_PRE_LOGIN); } } |