diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-10 16:46:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-10 16:46:55 +0300 |
commit | 608dfae22e1b5145210314ca6c7268420dd639c8 (patch) | |
tree | 5f7317be7e895a1f8aede182ea69ef56d456c54f /src/game.cpp | |
parent | 9eb389060d44672c311a36348036eab297859e7e (diff) | |
download | mv-608dfae22e1b5145210314ca6c7268420dd639c8.tar.gz mv-608dfae22e1b5145210314ca6c7268420dd639c8.tar.bz2 mv-608dfae22e1b5145210314ca6c7268420dd639c8.tar.xz mv-608dfae22e1b5145210314ca6c7268420dd639c8.zip |
Fix some issues found by automatic checks.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index 56e86ba6d..69333841f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -401,8 +401,9 @@ Game::Game() : top->add(viewport); viewport->requestMoveToBottom(); - AnimatedSprite::setEnableCache(mainGraphics->getOpenGL() - && config.getBoolValue("enableDelayedAnimations")); + AnimatedSprite::setEnableCache( + mainGraphics->getOpenGL() != RenderType::RENDER_SOFTWARE && + config.getBoolValue("enableDelayedAnimations")); CompoundSprite::setEnableDelay( config.getBoolValue("enableCompoundSpriteDelay")); @@ -656,7 +657,7 @@ void Game::slowLogic() effectManager->logic(); } - if (mainGraphics->getOpenGL()) + if (mainGraphics->getOpenGL() != RenderType::RENDER_SOFTWARE) DelayedManager::delayedLoad(); #ifdef TMWA_SUPPORT |