diff options
author | Andrew Kurushin | 2005-01-11 21:10:36 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-01-11 21:10:36 +0000 |
commit | 244b227b19b6bec659e4c00e2d7aa9596978cbe5 (patch) | |
tree | f7a88160f68d6f4da5e5580ae13ce9bb382d7795 /saga/sndres.cpp | |
parent | f1026ce3eb0bf4ad4e68987e4952dff141ccf331 (diff) | |
download | scummvm-rg350-244b227b19b6bec659e4c00e2d7aa9596978cbe5.tar.gz scummvm-rg350-244b227b19b6bec659e4c00e2d7aa9596978cbe5.tar.bz2 scummvm-rg350-244b227b19b6bec659e4c00e2d7aa9596978cbe5.zip |
- remove game.h & image.h
- all display information of current game goes to SagaEngine
- remove GameFontIds
- hide SagaEngine _gameId,_gameType & etc with methods getGameId(), getGameType()
svn-id: r16545
Diffstat (limited to 'saga/sndres.cpp')
-rw-r--r-- | saga/sndres.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/saga/sndres.cpp b/saga/sndres.cpp index 8bb225bb0d..4262709bc0 100644 --- a/saga/sndres.cpp +++ b/saga/sndres.cpp @@ -78,7 +78,7 @@ int SndRes::playVoice(uint32 voice_rn) { debug(0, "SndRes::playVoice(%ld)", voice_rn); - if (_vm->_gameType == GType_ITE && voice_rn == 4) { + if (_vm->getGameType() == GType_ITE && voice_rn == 4) { // The Wyrmkeep release of Inherit the Earth provides a // separate file (p2_a.voc or P2_A.iaf), to correct voice 4 in // the intro. Use that, if available. @@ -122,7 +122,7 @@ int SndRes::playVoice(uint32 voice_rn) { return FAILURE; } - if (_vm->_features & GF_VOX_VOICES && !voiceFile) + if (_vm->getFeatures() & GF_VOX_VOICES && !voiceFile) _vm->_sound->playVoxVoice(&snd_buffer); else _vm->_sound->playVoice(&snd_buffer); @@ -241,7 +241,7 @@ int SndRes::getVoiceLength(uint32 voice_rn) { // (p2_a.voc or P2_A.iaf), to correct voice 4 in the intro. Use that, // if available. - if (_vm->_gameType == GType_ITE && voice_rn == 4) { + if (_vm->getGameType() == GType_ITE && voice_rn == 4) { if (f.open("p2_a.voc")) { result = SUCCESS; length = f.size(); @@ -265,7 +265,7 @@ int SndRes::getVoiceLength(uint32 voice_rn) { } } - if (_vm->_features & GF_VOX_VOICES && !voiceFile) { + if (_vm->getFeatures() & GF_VOX_VOICES && !voiceFile) { // Rough hack, fix this to be accurate ms_f = (double)length / 22050 * 2000.0; ms_i = (int)ms_f; |