diff options
author | Alyssa Milburn | 2011-03-31 22:39:17 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-03-31 22:39:17 +0200 |
commit | ab97a5e493ba0f6fa9a4369bc445cb36ef8393cb (patch) | |
tree | f11edb20d99ec56b38073af95c74cf03e043040e | |
parent | 73c15cebe8b60dcc9289f5e3accb808153c01253 (diff) | |
download | scummvm-rg350-ab97a5e493ba0f6fa9a4369bc445cb36ef8393cb.tar.gz scummvm-rg350-ab97a5e493ba0f6fa9a4369bc445cb36ef8393cb.tar.bz2 scummvm-rg350-ab97a5e493ba0f6fa9a4369bc445cb36ef8393cb.zip |
MOHAWK: Tweaks to LBAnimationItem::setEnabled.
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 6253d962b8..a1bda0cc38 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -3479,12 +3479,10 @@ LBAnimationItem::~LBAnimationItem() { void LBAnimationItem::setEnabled(bool enabled) { if (_running) { - if (enabled && _neverEnabled) + if (enabled && _globalEnabled && _neverEnabled) _anim->start(); else if (!_neverEnabled && !enabled && _enabled && _globalEnabled) - if (_running) { - _anim->stop(); - } + _anim->stop(); } return LBItem::setEnabled(enabled); |