diff options
author | Einar Johan Trøan Sømåen | 2012-07-23 03:42:27 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-23 03:42:27 +0200 |
commit | c7eda9abc80d1912148cae4292b94620c67a9c19 (patch) | |
tree | b416c3ee3d2f2274b578a9bd8c8f3b01523cacc9 /engines/wintermute/base/sound | |
parent | aedb0aea505e764c4c7bab1f90520b380be4d688 (diff) | |
download | scummvm-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.cpp | 4 |
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;
}
|