summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-10 16:46:55 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-10 16:46:55 +0300
commit608dfae22e1b5145210314ca6c7268420dd639c8 (patch)
tree5f7317be7e895a1f8aede182ea69ef56d456c54f /src/game.cpp
parent9eb389060d44672c311a36348036eab297859e7e (diff)
downloadplus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.gz
plus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.bz2
plus-608dfae22e1b5145210314ca6c7268420dd639c8.tar.xz
plus-608dfae22e1b5145210314ca6c7268420dd639c8.zip
Fix some issues found by automatic checks.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp7
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