mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 20:21:06 +00:00
GRIM: Reset a chore on update() if its fade is 0.
This commit is contained in:
parent
75fca9efa4
commit
111d0454fd
@ -1746,8 +1746,12 @@ void Costume::update() {
|
||||
|
||||
for (int i = 0; i < _numComponents; i++) {
|
||||
if (_components[i]) {
|
||||
_components[i]->setMatrix(_matrix);
|
||||
_components[i]->update();
|
||||
if (_components[i]->_fade > 0) {
|
||||
_components[i]->setMatrix(_matrix);
|
||||
_components[i]->update();
|
||||
} else {
|
||||
_components[i]->reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user