aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Iskrich2016-06-17 15:46:07 +0300
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commit36df662863add2b9d88b5ecdbc11d06b25b3ecb3 (patch)
tree6fd1dc9f115977781d78bf0715c475ea62f0eb62
parent6a0e3945cf220fb944599e20dbd3490aadb6673e (diff)
downloadscummvm-rg350-36df662863add2b9d88b5ecdbc11d06b25b3ecb3.tar.gz
scummvm-rg350-36df662863add2b9d88b5ecdbc11d06b25b3ecb3.tar.bz2
scummvm-rg350-36df662863add2b9d88b5ecdbc11d06b25b3ecb3.zip
DIRECTOR: Handle transition chunk size exception
-rw-r--r--engines/director/score.cpp4
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;