summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 22:48:57 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commitd3994b21fda3e7d8ba417a382fc8f065a7bf1c52 (patch)
tree420c78c8ceda39895cce60849e3aeafedd41f081 /src/client.cpp
parent576b7dca4676ba2c1ea63afb6bbc96fd11183048 (diff)
downloadplus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.gz
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.bz2
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.xz
plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.zip
improve some mode methods in Client.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 4838618b6..6a65fa700 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -171,7 +171,7 @@ static uint32_t nextSecond(uint32_t interval, void *param A_UNUSED);
void ErrorListener::action(const gcn::ActionEvent &event)
{
if (event.getId() == "yes")
- openBrowser(Client::getSupportUrl());
+ openBrowser(client->getSupportUrl());
client->setState(STATE_CHOOSE_SERVER);
}
@@ -2730,16 +2730,6 @@ bool Client::limitPackets(const int type)
return true;
}
-void Client::setGuiAlpha(const float n)
-{
- instance()->mGuiAlpha = n;
-}
-
-float Client::getGuiAlpha()
-{
- return instance()->mGuiAlpha;
-}
-
void Client::setFramerate(const int fpsLimit)
{
if (!fpsLimit)
@@ -2898,16 +2888,12 @@ void Client::setIsMinimized(const bool n)
void Client::newChatMessage()
{
- Client *const client = instance();
- if (!client)
- return;
-
- if (!client->mNewMessageFlag && client->mIsMinimized)
+ if (!mNewMessageFlag && mIsMinimized)
{
// show * on window caption
SDL::SetWindowTitle(mainGraphics->getWindow(),
("*" + client->mCaption).c_str());
- client->mNewMessageFlag = true;
+ mNewMessageFlag = true;
}
}