diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-23 00:10:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-23 00:10:43 +0300 |
commit | d97189f055798b5b2051c1c5770a3def62747461 (patch) | |
tree | d66a891dba33d2ce1c882e0de7d6145bb2e0326b /src/game.cpp | |
parent | 25dce1399e40f24809842303d48ef090439de1e5 (diff) | |
download | plus-d97189f055798b5b2051c1c5770a3def62747461.tar.gz plus-d97189f055798b5b2051c1c5770a3def62747461.tar.bz2 plus-d97189f055798b5b2051c1c5770a3def62747461.tar.xz plus-d97189f055798b5b2051c1c5770a3def62747461.zip |
Improve perfomance in some object constructors.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index e5a86f4a3..db9486699 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -367,6 +367,7 @@ Game::Game(): mLastAction(0), mNextAdjustTime(cur_time + adjustDelay), mAdjustLevel(0), + mAdjustPerfomance(config.getBoolValue("adjustPerfomance")), mLowerCounter(0), mPing(0) { @@ -378,8 +379,6 @@ Game::Game(): disconnectedDialog = nullptr; - mAdjustPerfomance = config.getBoolValue("adjustPerfomance"); - // Create the viewport viewport = new Viewport; viewport->setSize(mainGraphics->mWidth, mainGraphics->mHeight); |