mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 13:42:37 +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() {
|
||||
if (!_neverEnabled && _enabled && _globalEnabled && _running) {
|
||||
bool wasDone = _anim->update();
|
||||
if (wasDone)
|
||||
if (wasDone) {
|
||||
_running = false;
|
||||
done(true);
|
||||
}
|
||||
}
|
||||
|
||||
LBItem::update();
|
||||
|
Loading…
x
Reference in New Issue
Block a user