diff options
author | Filippos Karapetis | 2011-12-28 18:53:45 +0200 |
---|---|---|
committer | Filippos Karapetis | 2011-12-28 18:54:17 +0200 |
commit | eaed1b725a7720e5ca72d9c3d380c218c9e5ac6d (patch) | |
tree | c1db9f9255cb37825a27c52090cf252eee495568 /engines/dreamweb/people.cpp | |
parent | 63da2ac271723a33839414827a2f01ef6185490e (diff) | |
download | scummvm-rg350-eaed1b725a7720e5ca72d9c3d380c218c9e5ac6d.tar.gz scummvm-rg350-eaed1b725a7720e5ca72d9c3d380c218c9e5ac6d.tar.bz2 scummvm-rg350-eaed1b725a7720e5ca72d9c3d380c218c9e5ac6d.zip |
DREAMWEB: Replaced most isCD calls with calls checking for speech
This is quite useful for devices with limited storage, where the user
can use the CD version without its speech files
Diffstat (limited to 'engines/dreamweb/people.cpp')
-rw-r--r-- | engines/dreamweb/people.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/dreamweb/people.cpp b/engines/dreamweb/people.cpp index 40084a28c4..6745a34453 100644 --- a/engines/dreamweb/people.cpp +++ b/engines/dreamweb/people.cpp @@ -123,7 +123,7 @@ static const ReelRoutine g_initialReelRoutines[] = { void DreamWebEngine::setupInitialReelRoutines() { for (unsigned int i = 0; i < kNumReelRoutines + 1; ++i) { _reelRoutines[i] = g_initialReelRoutines[i]; - if (_reelRoutines[i].period == 55 && isCD() && getLanguage() == Common::DE_DEU) + if (_reelRoutines[i].period == 55 && hasSpeech() && getLanguage() == Common::DE_DEU) _reelRoutines[i].period = 65; } } @@ -145,7 +145,7 @@ void DreamWebEngine::updatePeople() { void DreamWebEngine::madmanText() { byte origCount; - if (isCD()) { + if (hasSpeech()) { if (_speechCount >= 63) return; if (_channel1Playing != 255) @@ -188,12 +188,12 @@ void DreamWebEngine::madman(ReelRoutine &routine) { ++_vars._combatCount; madmanText(); newReelPointer = 53; - if (_vars._combatCount >= (isCD() ? 64 : 62)) { - if (_vars._combatCount == (isCD() ? 70 : 68)) + if (_vars._combatCount >= (hasSpeech() ? 64 : 62)) { + if (_vars._combatCount == (hasSpeech() ? 70 : 68)) newReelPointer = 310; else { if (_vars._lastWeapon == 8) { - _vars._combatCount = isCD() ? 72 : 70; + _vars._combatCount = hasSpeech() ? 72 : 70; _vars._lastWeapon = (uint8)-1; _vars._madmanFlag = 1; newReelPointer = 67; @@ -211,9 +211,9 @@ void DreamWebEngine::madman(ReelRoutine &routine) { void DreamWebEngine::madMode() { _vars._watchingTime = 2; _pointerMode = 0; - if (_vars._combatCount < (isCD() ? 65 : 63)) + if (_vars._combatCount < (hasSpeech() ? 65 : 63)) return; - if (_vars._combatCount >= (isCD() ? 70 : 68)) + if (_vars._combatCount >= (hasSpeech() ? 70 : 68)) return; _pointerMode = 2; } |