diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 22:48:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:17 +0300 |
commit | d3994b21fda3e7d8ba417a382fc8f065a7bf1c52 (patch) | |
tree | 420c78c8ceda39895cce60849e3aeafedd41f081 /src/game.cpp | |
parent | 576b7dca4676ba2c1ea63afb6bbc96fd11183048 (diff) | |
download | manaplus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.gz manaplus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.bz2 manaplus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.xz manaplus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.zip |
improve some mode methods in Client.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 8 |
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: |