MOHAWK: Update LBAnimationItem running state when anim is done.

This commit is contained in:
Alyssa Milburn 2011-03-31 22:38:32 +02:00
parent 66269fa208
commit 73c15cebe8

View File

@ -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();