[Scummvm-git-logs] scummvm master -> f146ccec337108899e6077915479f89dc93fd3d1

AndywinXp noreply at scummvm.org
Thu Jan 19 19:51:41 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
f146ccec33 JANITORIAL: SCUMM: Replace magic number


Commit: f146ccec337108899e6077915479f89dc93fd3d1
    https://github.com/scummvm/scummvm/commit/f146ccec337108899e6077915479f89dc93fd3d1
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-01-19T20:51:35+01:00

Commit Message:
JANITORIAL: SCUMM: Replace magic number

Changed paths:
    engines/scumm/smush/smush_player.cpp


diff --git a/engines/scumm/smush/smush_player.cpp b/engines/scumm/smush/smush_player.cpp
index e449c08c45d..393afd01a82 100644
--- a/engines/scumm/smush/smush_player.cpp
+++ b/engines/scumm/smush/smush_player.cpp
@@ -522,7 +522,7 @@ void SmushPlayer::handleIACT(int32 subSize, Common::SeekableReadStream &b) {
 				}
 			} else {
 				// There's an old sound running: switch the stream from the old one to the new one
-				_imuseDigital->diMUSESwitchStream(curSoundId, bufId + DIMUSE_SMUSH_SOUNDID, bufId == 2 ? 1000 : 150, 0, 0);
+				_imuseDigital->diMUSESwitchStream(curSoundId, bufId + DIMUSE_SMUSH_SOUNDID, bufId == DIMUSE_BUFFER_MUSIC ? 1000 : 150, 0, 0);
 			}
 
 			_imuseDigital->diMUSESetParam(bufId + DIMUSE_SMUSH_SOUNDID, DIMUSE_P_VOLUME, volume);




More information about the Scummvm-git-logs mailing list