diff options
author | Dmitry Iskrich | 2016-06-17 15:46:07 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 36df662863add2b9d88b5ecdbc11d06b25b3ecb3 (patch) | |
tree | 6fd1dc9f115977781d78bf0715c475ea62f0eb62 /engines | |
parent | 6a0e3945cf220fb944599e20dbd3490aadb6673e (diff) | |
download | scummvm-rg350-36df662863add2b9d88b5ecdbc11d06b25b3ecb3.tar.gz scummvm-rg350-36df662863add2b9d88b5ecdbc11d06b25b3ecb3.tar.bz2 scummvm-rg350-36df662863add2b9d88b5ecdbc11d06b25b3ecb3.zip |
DIRECTOR: Handle transition chunk size exception
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/score.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 04b61a6778..9e10edebc7 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -888,6 +888,10 @@ void Frame::playSoundChannel() { void Frame::playTransition(Score *score) { uint16 duration = _transDuration * 250; // _transDuration in 1/4 of sec duration = (duration == 0 ? 250 : duration); // director support transition duration = 0, but animation play like value = 1, idk. + + if (_transChunkSize == 0) + _transChunkSize = 1; //equal 1 step + uint16 stepDuration = duration / _transChunkSize; uint16 steps = duration / stepDuration; |