[Scummvm-git-logs] scummvm master -> 33abbcad60043c8e1dc9f392b5e9a2c90e1ef4b9
djsrv
dservilla at gmail.com
Mon Jul 19 17:56:51 UTC 2021
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:
33abbcad60 DIRECTOR: Use cast file version in looping check
Commit: 33abbcad60043c8e1dc9f392b5e9a2c90e1ef4b9
https://github.com/scummvm/scummvm/commit/33abbcad60043c8e1dc9f392b5e9a2c90e1ef4b9
Author: djsrv (dservilla at gmail.com)
Date: 2021-07-19T13:55:14-04:00
Commit Message:
DIRECTOR: Use cast file version in looping check
Changed paths:
engines/director/cast.cpp
diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp
index c7d68f56d5..1cf25d8caa 100644
--- a/engines/director/cast.cpp
+++ b/engines/director/cast.cpp
@@ -634,7 +634,7 @@ void Cast::loadSoundCasts() {
audio->loadStream(*sndData);
soundCast->_audio = audio;
soundCast->_size = sndData->size();
- if (g_director->getVersion() < 400) {
+ if (_version < kFileVer400) {
// The looping flag wasn't added to sound cast members until D4.
// In older versions, always loop sounds that contain a loop start and end.
soundCast->_looping = audio->hasLoopBounds();
More information about the Scummvm-git-logs
mailing list