summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-02 21:19:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-02 21:19:28 +0300
commita3b2076ba0b398523c3e0428c2400184e83c4f62 (patch)
treeae13ed62556e9b7343b9330089fa3dad2a8b67d2 /src/client.cpp
parent6f23241ba9d7d908534dade0e03041486a970ddc (diff)
downloadmanaverse-a3b2076ba0b398523c3e0428c2400184e83c4f62.tar.gz
manaverse-a3b2076ba0b398523c3e0428c2400184e83c4f62.tar.bz2
manaverse-a3b2076ba0b398523c3e0428c2400184e83c4f62.tar.xz
manaverse-a3b2076ba0b398523c3e0428c2400184e83c4f62.zip
Last fixes after Coverity checks.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 7493257fd..5a0733e92 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -284,6 +284,12 @@ Client::Client(const Options &options) :
mButtonSpacing(3)
{
mInstance = this;
+
+ // Initialize frame limiting
+ mFpsManager.framecount = 0;
+ mFpsManager.rateticks = 0;
+ mFpsManager.lastticks = 0;
+ mFpsManager.rate = 0;
}
void Client::testsInit()
@@ -652,11 +658,6 @@ void Client::gameInit()
const int fpsLimit = config.getIntValue("fpslimit");
mLimitFps = fpsLimit > 0;
- // Initialize frame limiting
- mFpsManager.framecount = 0;
- mFpsManager.rateticks = 0;
- mFpsManager.lastticks = 0;
- mFpsManager.rate = 0;
SDL_initFramerate(&mFpsManager);
setFramerate(fpsLimit);