diff options
Diffstat (limited to 'engines/mohawk/riven_graphics.cpp')
-rw-r--r-- | engines/mohawk/riven_graphics.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/engines/mohawk/riven_graphics.cpp b/engines/mohawk/riven_graphics.cpp index a07cb79fa8..04562f82ba 100644 --- a/engines/mohawk/riven_graphics.cpp +++ b/engines/mohawk/riven_graphics.cpp @@ -670,12 +670,6 @@ void RivenGraphics::clearFliesEffect() { _fliesEffect = nullptr; } -void RivenGraphics::runFliesEffect() { - if (_fliesEffect) { - _fliesEffect->update(); - } -} - Graphics::Surface *RivenGraphics::getBackScreen() { return _mainScreen; } @@ -684,6 +678,14 @@ Graphics::Surface *RivenGraphics::getEffectScreen() { return _effectScreen; } +void RivenGraphics::updateEffects() { + runScheduledWaterEffects(); + + if (_fliesEffect) { + _fliesEffect->update(); + } +} + const FliesEffect::FliesEffectData FliesEffect::_firefliesParameters = { true, true, |