From c88734cc2b8a0785c23531ce70bf703887aa0c4b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 23 Aug 2013 23:17:19 +0300 Subject: remove most static methods from Client. --- src/game.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 446b3fbfd..d15c79a36 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -638,7 +638,7 @@ void Game::slowLogic() } } closeDialogs(); - Client::setFramerate(config.getIntValue("fpslimit")); + client->setFramerate(config.getIntValue("fpslimit")); mNextAdjustTime = cur_time + adjustDelay; if (client->getState() != STATE_ERROR) errorMessage.clear(); @@ -681,7 +681,7 @@ void Game::adjustPerfomance() return; } - int maxFps = Client::getFramerate(); + int maxFps = client->getFramerate(); if (maxFps != config.getIntValue("fpslimit")) return; @@ -935,7 +935,7 @@ void Game::handleActive(const SDL_Event &event) fpsLimit = config.getIntValue("fpslimit"); } } - Client::setFramerate(fpsLimit); + client->setFramerate(fpsLimit); mNextAdjustTime = cur_time + adjustDelay; #endif } @@ -992,7 +992,7 @@ void Game::handleInput() break; #ifdef ANDROID case SDL_KEYBOARDSHOW: - Client::updateScreenKeyboard(event.user.code); + client->updateScreenKeyboard(event.user.code); break; #endif default: -- cgit v1.2.3-70-g09d2