aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2016-08-15 15:16:22 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commitab2d151541f5d4ae12aeeba6ec5e928109be84f5 (patch)
treea4551255e05de479655a81658702321c1a473b47 /engines/mohawk/riven.cpp
parent85712e56c8e2cf8a6e04110646f4345c153211fd (diff)
downloadscummvm-rg350-ab2d151541f5d4ae12aeeba6ec5e928109be84f5.tar.gz
scummvm-rg350-ab2d151541f5d4ae12aeeba6ec5e928109be84f5.tar.bz2
scummvm-rg350-ab2d151541f5d4ae12aeeba6ec5e928109be84f5.zip
MOHAWK: Implement the (fire)flies effect mainly used in jungle island
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r--engines/mohawk/riven.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp
index 2536b0246f..485d4bb174 100644
--- a/engines/mohawk/riven.cpp
+++ b/engines/mohawk/riven.cpp
@@ -204,6 +204,7 @@ void MohawkEngine_Riven::handleEvents() {
// Update background running things
checkTimer();
_sound->updateSLST();
+ _gfx->runFliesEffect();
bool needsUpdate = _gfx->runScheduledWaterEffects();
needsUpdate |= _video->updateMovies();
@@ -495,6 +496,7 @@ void MohawkEngine_Riven::delayAndUpdate(uint32 ms) {
while (_system->getMillis() < startTime + ms && !shouldQuit()) {
_sound->updateSLST();
+ _gfx->runFliesEffect();
bool needsUpdate = _gfx->runScheduledWaterEffects();
needsUpdate |= _video->updateMovies();