aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/sound
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-23 03:42:27 +0200
committerEinar Johan Trøan Sømåen2012-07-23 03:42:27 +0200
commitc7eda9abc80d1912148cae4292b94620c67a9c19 (patch)
treeb416c3ee3d2f2274b578a9bd8c8f3b01523cacc9 /engines/wintermute/base/sound
parentaedb0aea505e764c4c7bab1f90520b380be4d688 (diff)
downloadscummvm-rg350-c7eda9abc80d1912148cae4292b94620c67a9c19.tar.gz
scummvm-rg350-c7eda9abc80d1912148cae4292b94620c67a9c19.tar.bz2
scummvm-rg350-c7eda9abc80d1912148cae4292b94620c67a9c19.zip
WINTERMUTE: Encapsulate and distance BasePersistenceManager from Base.
Diffstat (limited to 'engines/wintermute/base/sound')
-rw-r--r--engines/wintermute/base/sound/base_sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/sound/base_sound.cpp b/engines/wintermute/base/sound/base_sound.cpp
index 06421e8632..1853d7abfd 100644
--- a/engines/wintermute/base/sound/base_sound.cpp
+++ b/engines/wintermute/base/sound/base_sound.cpp
@@ -149,7 +149,7 @@ bool BaseSound::resume() {
//////////////////////////////////////////////////////////////////////////
bool BaseSound::persist(BasePersistenceManager *persistMgr) {
- if (persistMgr->_saving && _sound) {
+ if (persistMgr->getIsSaving() && _sound) {
_soundPlaying = _sound->isPlaying();
_soundLooping = _sound->_looping;
_soundPrivateVolume = _sound->_privateVolume;
@@ -159,7 +159,7 @@ bool BaseSound::persist(BasePersistenceManager *persistMgr) {
_soundFreezePaused = _sound->_freezePaused;
}
- if (persistMgr->_saving) {
+ if (persistMgr->getIsSaving()) {
_sFXType = SFX_NONE;
_sFXParam1 = _sFXParam2 = _sFXParam3 = _sFXParam4 = 0;
}