aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-04-19 08:10:30 +0200
committerStrangerke2013-04-19 08:10:30 +0200
commitcbf85da3f3052657ab8d9ef5736ff8eca9eb0721 (patch)
tree2bb51c56fae6533ba895cb825be53d1e70c27f61
parent398b4353a62cd5d5d4eda2c8e56bc75de350fa72 (diff)
downloadscummvm-rg350-cbf85da3f3052657ab8d9ef5736ff8eca9eb0721.tar.gz
scummvm-rg350-cbf85da3f3052657ab8d9ef5736ff8eca9eb0721.tar.bz2
scummvm-rg350-cbf85da3f3052657ab8d9ef5736ff8eca9eb0721.zip
HOPKINS: Simplify code in checkSounds()
-rw-r--r--engines/hopkins/sound.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/hopkins/sound.cpp b/engines/hopkins/sound.cpp
index 1507cfab02..94f90f7971 100644
--- a/engines/hopkins/sound.cpp
+++ b/engines/hopkins/sound.cpp
@@ -456,10 +456,8 @@ void SoundManager::checkSounds() {
void SoundManager::checkVoiceActivity() {
// Check the status of each voice.
bool hasActiveVoice = false;
- for (int i = 0; i < VOICE_COUNT; ++i) {
- checkVoiceStatus(i);
- hasActiveVoice |= _voice[i]._status;
- }
+ for (int i = 0; i < VOICE_COUNT; ++i)
+ hasActiveVoice |= checkVoiceStatus(i);
if (!hasActiveVoice && _soundFl) {
_soundFl = false;