From 532aeaa435103933126310efafdc892a436a37ab Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Sat, 18 Jan 2003 14:58:37 +0000 Subject: fix smush audio loop svn-id: r6497 --- scumm/smush/player.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scumm/smush') diff --git a/scumm/smush/player.cpp b/scumm/smush/player.cpp index a03b6f9354..0a904769f7 100644 --- a/scumm/smush/player.cpp +++ b/scumm/smush/player.cpp @@ -386,17 +386,19 @@ void SmushPlayer::handleImuseAction8(Chunk & b, int32 flags, int32 unknown, int3 *(byte*)(_IACToutput + 1) = *(byte*)d_src++; _IACTrest = 2; bsize--; + continue; } bsize = 0; *(byte*)(_IACToutput + 0) = *(byte*)d_src; _IACTrest = 1; + continue; } else if (_IACTrest == 0) { *(byte*)(_IACToutput + 0) = *(byte*)d_src++; bsize--; - *(byte*)(_IACToutput + 1) = *(byte*)d_src++; - _IACTrest = 2; - bsize--; } + *(byte*)(_IACToutput + 1) = *(byte*)d_src++; + _IACTrest = 2; + bsize--; } } while (bsize != 0); -- cgit v1.2.3