aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2013-11-06 23:52:01 +0200
committerEugene Sandulenko2013-11-06 23:52:01 +0200
commit49fd22b5a9f912f2d4fef9175518684930fcf881 (patch)
treef59cc7b7780f79af93cffd6addb7f5988028bea0
parent627769a2f5d9ec0bbcf6ce9f9200a173bfea84bf (diff)
downloadscummvm-rg350-49fd22b5a9f912f2d4fef9175518684930fcf881.tar.gz
scummvm-rg350-49fd22b5a9f912f2d4fef9175518684930fcf881.tar.bz2
scummvm-rg350-49fd22b5a9f912f2d4fef9175518684930fcf881.zip
FULLPIPE: Implement ModalIntro destructor
-rw-r--r--engines/fullpipe/modal.cpp5
-rw-r--r--engines/fullpipe/modal.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp
index 44e7b46184..f766be3eac 100644
--- a/engines/fullpipe/modal.cpp
+++ b/engines/fullpipe/modal.cpp
@@ -48,6 +48,11 @@ ModalIntro::ModalIntro() {
_sfxVolume = g_fullpipe->_sfxVolume;
}
+ModalIntro::~ModalIntro() {
+ g_fullpipe->stopAllSounds();
+ g_fullpipe->_sfxVolume = _sfxVolume;
+}
+
bool ModalIntro::handleMessage(ExCommand *message) {
if (message->_messageKind != 17)
return false;
diff --git a/engines/fullpipe/modal.h b/engines/fullpipe/modal.h
index f3f571e2a9..b57d1fbd06 100644
--- a/engines/fullpipe/modal.h
+++ b/engines/fullpipe/modal.h
@@ -52,6 +52,7 @@ class ModalIntro : public BaseModalObject {
public:
ModalIntro();
+ virtual ~ModalIntro();
virtual bool pollEvent() { return true; }
virtual bool handleMessage(ExCommand *message);