aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-15 13:30:18 +0000
committerMartin Kiewitz2009-10-15 13:30:18 +0000
commite195b8870771091147b95aea1d744e1a9f2b46a2 (patch)
tree15cba25814dc23ca216e43445628db6b6f2c6f2b /engines/sci
parent4587b9bed8cee8e5c71f51665372ef176d57f220 (diff)
downloadscummvm-rg350-e195b8870771091147b95aea1d744e1a9f2b46a2.tar.gz
scummvm-rg350-e195b8870771091147b95aea1d744e1a9f2b46a2.tar.bz2
scummvm-rg350-e195b8870771091147b95aea1d744e1a9f2b46a2.zip
SCI: kAnimate speed throttler fix
svn-id: r45118
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kgraphics.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 180ca9d367..7fc77bbdff 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -941,10 +941,12 @@ reg_t kAnimate(EngineState *s, int argc, reg_t *argv) {
uint32 curTime = g_system->getMillis();
uint32 duration = curTime - s->_lastAnimateTime;
- if (duration < 50) {
- gfxop_sleep(s->gfx_state, 50-duration);
+ if (duration < 40) {
+ gfxop_sleep(s->gfx_state, 40-duration);
+ s->_lastAnimateTime = g_system->getMillis();
+ } else {
+ s->_lastAnimateTime = curTime;
}
- s->_lastAnimateTime = curTime;
return s->r_acc;
}