aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v72he.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r--scumm/script_v72he.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index b391f7760a..23ed33dbf0 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -770,9 +770,12 @@ void ScummEngine_v72he::o72_setTimer() {
}
void ScummEngine_v72he::o72_unknown5A() {
- int value = pop();
- push(4);
- debug(1,"o72_unknown5A stub (%d)", value);
+ // Seems to get length of sound already played
+ int snd = pop();
+ int r = _mixer->getChannelElapsedTime(_sound->_musicChannelHandle);
+
+ push(r * 10);
+ debug(1,"o72_unknown5A stub (%d)", snd);
}
void ScummEngine_v72he::o72_wordArrayDec() {