diff options
author | Alyssa Milburn | 2011-03-31 22:38:32 +0200 |
---|---|---|
committer | Alyssa Milburn | 2011-03-31 22:38:32 +0200 |
commit | 73c15cebe8b60dcc9289f5e3accb808153c01253 (patch) | |
tree | 48e00ac9c514180e01d46c2b68b296b0dca60c98 /engines/mohawk/livingbooks.cpp | |
parent | 66269fa2088a4f47f70b15e6c3c57006353b05d4 (diff) | |
download | scummvm-rg350-73c15cebe8b60dcc9289f5e3accb808153c01253.tar.gz scummvm-rg350-73c15cebe8b60dcc9289f5e3accb808153c01253.tar.bz2 scummvm-rg350-73c15cebe8b60dcc9289f5e3accb808153c01253.zip |
MOHAWK: Update LBAnimationItem running state when anim is done.
Diffstat (limited to 'engines/mohawk/livingbooks.cpp')
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index 6534f79ebc..6253d962b8 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -3503,8 +3503,10 @@ bool LBAnimationItem::contains(Common::Point point) { void LBAnimationItem::update() { if (!_neverEnabled && _enabled && _globalEnabled && _running) { bool wasDone = _anim->update(); - if (wasDone) + if (wasDone) { + _running = false; done(true); + } } LBItem::update(); |