aboutsummaryrefslogtreecommitdiff
path: root/saga/sfuncs.cpp
diff options
context:
space:
mode:
authorAndrew Kurushin2005-06-25 15:55:43 +0000
committerAndrew Kurushin2005-06-25 15:55:43 +0000
commit353e8586d478c60f2da5d1d95ece50e98b044574 (patch)
treeb66bc36410015859ac1240fb5772d1be59f731cd /saga/sfuncs.cpp
parent003081fd5377f9daf32fcd18abe957f577b2bb81 (diff)
downloadscummvm-rg350-353e8586d478c60f2da5d1d95ece50e98b044574.tar.gz
scummvm-rg350-353e8586d478c60f2da5d1d95ece50e98b044574.tar.bz2
scummvm-rg350-353e8586d478c60f2da5d1d95ece50e98b044574.zip
fix animation timings (now Shiala scene not stucks)
svn-id: r18463
Diffstat (limited to 'saga/sfuncs.cpp')
-rw-r--r--saga/sfuncs.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/saga/sfuncs.cpp b/saga/sfuncs.cpp
index 107d315c3f..f0ef31c8ac 100644
--- a/saga/sfuncs.cpp
+++ b/saga/sfuncs.cpp
@@ -343,7 +343,8 @@ void Script::sfStartBgdAnim(SCRIPTFUNC_PARAMS) {
int16 cycles = thread->pop();
_vm->_anim->setCycles(animId, cycles);
- _vm->_anim->play(animId, kRepeatSpeed);
+ _vm->_anim->setFrameTime(animId, ticksToMSec(kRepeatSpeedTicks));
+ _vm->_anim->play(animId, 0);
debug(1, "sfStartBgdAnim(%d, %d)", animId, cycles);
}
@@ -656,7 +657,8 @@ void Script::sfStartBgdAnimSpeed(SCRIPTFUNC_PARAMS) {
int16 speed = thread->pop();
_vm->_anim->setCycles(animId, cycles);
- _vm->_anim->play(animId, ticksToMSec(speed));
+ _vm->_anim->setFrameTime(animId, ticksToMSec(speed));
+ _vm->_anim->play(animId, 0);
debug(1, "sfStartBgdAnimSpeed(%d, %d, %d)", animId, cycles, speed);
}