[Scummvm-cvs-logs] scummvm master -> 49fd22b5a9f912f2d4fef9175518684930fcf881

sev- sev at scummvm.org
Wed Nov 6 23:13:44 CET 2013


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
49fd22b5a9 FULLPIPE: Implement ModalIntro destructor


Commit: 49fd22b5a9f912f2d4fef9175518684930fcf881
    https://github.com/scummvm/scummvm/commit/49fd22b5a9f912f2d4fef9175518684930fcf881
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2013-11-06T13:52:01-08:00

Commit Message:
FULLPIPE: Implement ModalIntro destructor

Changed paths:
    engines/fullpipe/modal.cpp
    engines/fullpipe/modal.h



diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp
index 44e7b46..f766be3 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 f3f571e..b57d1fb 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);






More information about the Scummvm-git-logs mailing list