aboutsummaryrefslogtreecommitdiff
path: root/engines/made
diff options
context:
space:
mode:
authorBenjamin Haisch2008-05-09 10:56:03 +0000
committerBenjamin Haisch2008-05-09 10:56:03 +0000
commitb222d0c5390b052fadeb6eec67e425e354a8401c (patch)
tree530de3e119c62d517e40613f6033e55232aa4bf1 /engines/made
parent55e4b05b185622194d644f5b27490e33cda8c483 (diff)
downloadscummvm-rg350-b222d0c5390b052fadeb6eec67e425e354a8401c.tar.gz
scummvm-rg350-b222d0c5390b052fadeb6eec67e425e354a8401c.tar.bz2
scummvm-rg350-b222d0c5390b052fadeb6eec67e425e354a8401c.zip
Added workaround for o1_SNDENERGY
svn-id: r31962
Diffstat (limited to 'engines/made')
-rw-r--r--engines/made/scriptfuncs_rtz.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/made/scriptfuncs_rtz.cpp b/engines/made/scriptfuncs_rtz.cpp
index 20a3af164c..2cf0e3bc03 100644
--- a/engines/made/scriptfuncs_rtz.cpp
+++ b/engines/made/scriptfuncs_rtz.cpp
@@ -552,9 +552,9 @@ int16 ScriptFunctionsRtz::o1_SNDENERGY(int16 argc, int16 *argv) {
// This is called while in-game voices are played
// Not sure what it's used for
// -> It's used to animate mouths when NPCs are talking
- // Commented out to reduce spam
- //warning("Unimplemented opcode: o1_SNDENERGY");
- return 0;
+ // FIXME: This is a workaround for the "sound energy" problem
+ // At least the characters move their lips when talking now
+ return _vm->_rnd->getRandomNumber(5);
}
int16 ScriptFunctionsRtz::o1_CLEARTEXT(int16 argc, int16 *argv) {