aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kmisc.cpp
diff options
context:
space:
mode:
authorMax Horn2010-06-17 23:10:37 +0000
committerMax Horn2010-06-17 23:10:37 +0000
commit8e07a1e16768548112a290d04348e26173e8afa0 (patch)
tree02e9b309a40e6e9865facfe10bd1e8d5267cb112 /engines/sci/engine/kmisc.cpp
parent37434d86ae8f4e7ca3e7f0258c78ad9441f99e31 (diff)
downloadscummvm-rg350-8e07a1e16768548112a290d04348e26173e8afa0.tar.gz
scummvm-rg350-8e07a1e16768548112a290d04348e26173e8afa0.tar.bz2
scummvm-rg350-8e07a1e16768548112a290d04348e26173e8afa0.zip
SCI: Moved the event code a little bit around.
* Move sleep() from EventManager to SciEngine * Rename EventManager methods: get -> getSciEvent, and getFromScummVM -> getScummVMEvent * Make scancode_rows static const * Turn altify & numlockify from EventManager methods into static functions (and comment out the currently unused numlockify) svn-id: r49959
Diffstat (limited to 'engines/sci/engine/kmisc.cpp')
-rw-r--r--engines/sci/engine/kmisc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp
index ef6088b6d5..99b268f774 100644
--- a/engines/sci/engine/kmisc.cpp
+++ b/engines/sci/engine/kmisc.cpp
@@ -79,7 +79,7 @@ reg_t kGameIsRestarting(EngineState *s, int argc, reg_t *argv) {
uint32 duration = curTime - s->_throttleLastTime;
if (duration < neededSleep) {
- g_sci->getEventManager()->sleep(neededSleep - duration);
+ g_sci->sleep(neededSleep - duration);
s->_throttleLastTime = g_system->getMillis();
} else {
s->_throttleLastTime = curTime;