summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 23:17:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commitc88734cc2b8a0785c23531ce70bf703887aa0c4b (patch)
treecdb4448b0bea29f9d9c61401ce91a00f92e2a5f5 /src/game.cpp
parentd3994b21fda3e7d8ba417a382fc8f065a7bf1c52 (diff)
downloadmv-c88734cc2b8a0785c23531ce70bf703887aa0c4b.tar.gz
mv-c88734cc2b8a0785c23531ce70bf703887aa0c4b.tar.bz2
mv-c88734cc2b8a0785c23531ce70bf703887aa0c4b.tar.xz
mv-c88734cc2b8a0785c23531ce70bf703887aa0c4b.zip
remove most static methods from 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 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: