mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 22:07:34 +00:00
MOHAWK: Update LBAnimationItem running state when anim is done.
This commit is contained in:
parent
66269fa208
commit
73c15cebe8
@ -3503,8 +3503,10 @@ bool LBAnimationItem::contains(Common::Point point) {
|
|||||||
void LBAnimationItem::update() {
|
void LBAnimationItem::update() {
|
||||||
if (!_neverEnabled && _enabled && _globalEnabled && _running) {
|
if (!_neverEnabled && _enabled && _globalEnabled && _running) {
|
||||||
bool wasDone = _anim->update();
|
bool wasDone = _anim->update();
|
||||||
if (wasDone)
|
if (wasDone) {
|
||||||
|
_running = false;
|
||||||
done(true);
|
done(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LBItem::update();
|
LBItem::update();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user