summaryrefslogtreecommitdiff
path: root/src/game.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/game.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/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 379bb42f6..446b3fbfd 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -620,7 +620,7 @@ void Game::slowLogic()
{
// TRANSLATORS: error message text
errorMessage = _("The connection to the server was lost.");
- disconnectedDialog = Client::openErrorDialog(
+ disconnectedDialog = client->openErrorDialog(
// TRANSLATORS: error message header
_("Network Error"), errorMessage, false);
disconnectedDialog->addActionListener(&errorListener);
@@ -917,7 +917,7 @@ void Game::handleActive(const SDL_Event &event)
player_node->updateName();
if (event.active.state & SDL_APPINPUTFOCUS)
- Client::setInputFocused(event.active.gain);
+ client->setInputFocused(event.active.gain);
if (event.active.state & SDL_APPMOUSEFOCUS)
Client::setMouseFocused(event.active.gain);
@@ -925,7 +925,7 @@ void Game::handleActive(const SDL_Event &event)
{
if (player_node && player_node->getAway())
{
- if (Client::getInputFocused() || Client::getMouseFocused())
+ if (client->getInputFocused() || client->getMouseFocused())
fpsLimit = config.getIntValue("fpslimit");
else
fpsLimit = config.getIntValue("altfpslimit");
@@ -979,7 +979,7 @@ void Game::handleInput()
case SDL_VIDEORESIZE:
// Let the client deal with this one (it'll
// pass down from there)
- Client::resize(event.resize.w, event.resize.h);
+ client->resizeVideo(event.resize.w, event.resize.h);
break;
// Active event
case SDL_ACTIVEEVENT: