summaryrefslogtreecommitdiff
path: root/src/net/tmwa/generalhandler.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/net/tmwa/generalhandler.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/net/tmwa/generalhandler.cpp')
-rw-r--r--src/net/tmwa/generalhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index ba8f40551..1d92e1eb8 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -145,7 +145,7 @@ void GeneralHandler::handleMessage(Net::MessageIn &msg)
errorMessage = _("No servers available.");
break;
case 2:
- if (Client::getState() == STATE_GAME)
+ if (client->getState() == STATE_GAME)
{
// TRANSLATORS: error message
errorMessage = _("Someone else is trying to use this "
@@ -170,7 +170,7 @@ void GeneralHandler::handleMessage(Net::MessageIn &msg)
errorMessage = _("Unknown connection error.");
break;
}
- Client::setState(STATE_ERROR);
+ client->setState(STATE_ERROR);
break;
}
@@ -251,7 +251,7 @@ void GeneralHandler::flushNetwork()
errorMessage = _("Got disconnected from server!");
}
- Client::setState(STATE_ERROR);
+ client->setState(STATE_ERROR);
}
BLOCK_END("GeneralHandler::flushNetwork 3")
}