From caf0eccb2d3f1b3810302e7ec2ef77bb5ced248e Mon Sep 17 00:00:00 2001 From: Jamieson Christian Date: Fri, 13 Dec 2002 15:16:40 +0000 Subject: Bug [622895] fix: Fixed do_command(256) implementation. svn-id: r5927 --- scumm/imuse.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scumm/imuse.cpp b/scumm/imuse.cpp index 36d2b9cef8..b0e83aba09 100644 --- a/scumm/imuse.cpp +++ b/scumm/imuse.cpp @@ -1519,9 +1519,10 @@ int32 IMuseInternal::do_command(int a, int b, int c, int d, int e, int f, int g, switch (cmd) { case 0: if (g_scumm->_gameId == GID_SAMNMAX) { - if (d == 1) - return player->_marker; - else if (d == 2) + if (d == 1) // Measure number + // return player->_marker; + return ((player->_beat_index - 1) >> 2) + 1; + else if (d == 2) // Beat number return player->_beat_index; return -1; } else { -- cgit v1.2.3