summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 22:00:27 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:16 +0300
commitc2a7004213529c403faeb6fdcc374699aa2f53b5 (patch)
treef5701ef3412923bc0e5e033033bd52960d66acc3 /src/client.cpp
parente8a4474319aca4a32869fa1ebb8b5ebbd98237f6 (diff)
downloadmv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.gz
mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.bz2
mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.xz
mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.zip
improve getState/setState in Client.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 6cb9ac028..ccd2b76c7 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -172,7 +172,7 @@ void ErrorListener::action(const gcn::ActionEvent &event)
{
if (event.getId() == "yes")
openBrowser(Client::getSupportUrl());
- Client::setState(STATE_CHOOSE_SERVER);
+ client->setState(STATE_CHOOSE_SERVER);
}
volatile int tick_time; /**< Tick counter */
@@ -251,7 +251,7 @@ class AccountListener final : public gcn::ActionListener
public:
void action(const gcn::ActionEvent &)
{
- Client::setState(STATE_CHAR_SELECT);
+ client->setState(STATE_CHAR_SELECT);
}
} accountListener;
@@ -260,7 +260,7 @@ class LoginListener final : public gcn::ActionListener
public:
void action(const gcn::ActionEvent &)
{
- Client::setState(STATE_PRE_LOGIN);
+ client->setState(STATE_PRE_LOGIN);
}
} loginListener;