aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Bouclet2016-02-20 13:56:12 +0100
committerBastien Bouclet2016-02-20 14:00:59 +0100
commit23c251bac9b3d3533fc43adbe46003b3d6a2fe53 (patch)
treedaefe90782c7a5fe636ef8adb24d89809bc668a1
parent84841fa635d90ae1936339b63ec675d62a4d84b9 (diff)
downloadscummvm-rg350-23c251bac9b3d3533fc43adbe46003b3d6a2fe53.tar.gz
scummvm-rg350-23c251bac9b3d3533fc43adbe46003b3d6a2fe53.tar.bz2
scummvm-rg350-23c251bac9b3d3533fc43adbe46003b3d6a2fe53.zip
MOHAWK: Replace an unneeded TODO with an explanation
-rw-r--r--engines/mohawk/myst_scripts.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp
index 0e14b24ed3..04e7c5a9b7 100644
--- a/engines/mohawk/myst_scripts.cpp
+++ b/engines/mohawk/myst_scripts.cpp
@@ -434,7 +434,10 @@ void MystScriptParser::o_goToDestUp(uint16 op, uint16 var, uint16 argc, uint16 *
void MystScriptParser::o_triggerMovie(uint16 op, uint16 var, uint16 argc, uint16 *argv) {
debugC(kDebugScript, "Opcode %d: Trigger Type 6 Resource Movie..", op);
- // TODO: If movie has sound, pause background music
+ // The original has code to pause the background music before playing the movie,
+ // if the movie has a sound track, as well as code to resume it afterwards. But since
+ // the movie has not yet been loaded at this point, it is impossible to know
+ // if the movie actually has a sound track. The code is never executed.
int16 direction = 1;
if (argc == 1)
@@ -446,8 +449,6 @@ void MystScriptParser::o_triggerMovie(uint16 op, uint16 var, uint16 argc, uint16
MystAreaVideo *resource = getInvokingResource<MystAreaVideo>();
resource->setDirection(direction);
resource->playMovie();
-
- // TODO: If movie has sound, resume background music
}
void MystScriptParser::o_toggleVarNoRedraw(uint16 op, uint16 var, uint16 argc, uint16 *argv) {