diff options
author | Strangerke | 2016-01-12 10:56:25 +0100 |
---|---|---|
committer | Strangerke | 2016-01-12 10:56:25 +0100 |
commit | 0b4a1ec223d4bd4b1a4060083834b3af7fb8fef5 (patch) | |
tree | 9bbd259b3c13b99e8abdfb2d1b878d3a19b7282e | |
parent | 9a5143e080ab8c76b0212dcb722c90a50467eaf8 (diff) | |
download | scummvm-rg350-0b4a1ec223d4bd4b1a4060083834b3af7fb8fef5.tar.gz scummvm-rg350-0b4a1ec223d4bd4b1a4060083834b3af7fb8fef5.tar.bz2 scummvm-rg350-0b4a1ec223d4bd4b1a4060083834b3af7fb8fef5.zip |
MOHAWK: Add a comment about suspicious dead code in o_changeBackgroundSound
-rw-r--r-- | engines/mohawk/myst_scripts.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp index 15d74a2253..41e066064e 100644 --- a/engines/mohawk/myst_scripts.cpp +++ b/engines/mohawk/myst_scripts.cpp @@ -721,6 +721,8 @@ void MystScriptParser::o_changeBackgroundSound(uint16 op, uint16 var, uint16 arg for (uint16 i = 0; i < condCount; i++) { soundList[i] = argv[decodeIdx++]; debugC(kDebugScript, "\t\tCondition %d: Action %d", i, soundList[i]); + // CHECKME: At this point, soundAction is always kMystSoundActionConditional (-4) + // The soundListVolume is therefore always set to 65535 if (soundAction == kMystSoundActionChangeVolume || soundAction > 0) { soundListVolume[i] = argv[decodeIdx++]; } else |