diff options
Diffstat (limited to 'engines/bladerunner/overlays.cpp')
-rw-r--r-- | engines/bladerunner/overlays.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/bladerunner/overlays.cpp b/engines/bladerunner/overlays.cpp index dddf677c53..6e94b291e5 100644 --- a/engines/bladerunner/overlays.cpp +++ b/engines/bladerunner/overlays.cpp @@ -56,7 +56,7 @@ Overlays::~Overlays() { reset(); } -int Overlays::play(const Common::String &name, int loopId, int loopForever, int a5, int a6) { +int Overlays::play(const Common::String &name, int loopId, int loopForever, int startNow, int a6) { int id = mix_id(name); int index = findById(id); if (index < 0) { @@ -77,7 +77,7 @@ int Overlays::play(const Common::String &name, int loopId, int loopForever, int _videos[index].vqaPlayer->setLoop( loopId, loopForever ? -1 : 0, - a5 ? kLoopSetModeImmediate : kLoopSetModeEnqueue, + startNow ? kLoopSetModeImmediate : kLoopSetModeEnqueue, nullptr, nullptr); return index; @@ -91,6 +91,14 @@ void Overlays::remove(const Common::String &name) { } } +void Overlays::removeAll() { + for (int i = 0; i < kOverlayVideos; ++i) { + if (_videos[i].loaded) { + resetSingle(i); + } + } +} + void Overlays::tick() { for (int i = 0; i < kOverlayVideos; ++i) { if (_videos[i].loaded) { @@ -131,14 +139,6 @@ void Overlays::resetSingle(int i) { _videos[i].field2 = -1; } -void Overlays::resetAll() { - for (int i = 0; i < kOverlayVideos; ++i) { - if (_videos[i].loaded) { - resetSingle(i); - } - } -} - void Overlays::reset() { _videos.clear(); } |