aboutsummaryrefslogtreecommitdiff
path: root/sdl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sdl.cpp')
-rw-r--r--sdl.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/sdl.cpp b/sdl.cpp
index a77335f3d1..37b428e1ba 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -953,6 +953,7 @@ int main(int argc, char* argv[]) {
scumm->_features = detector._features;
scumm->_soundCardType = detector._soundCardType;
+ scumm->delta=6;
scumm->_gui = &gui;
// gui.init(scumm);
@@ -961,11 +962,9 @@ int main(int argc, char* argv[]) {
scumm->delta=0;
scumm->_system = &_system;
- _system.last_time = SDL_GetTicks();
-
- scumm->launch();
+ _system.last_time=0;
- _system.last_time = SDL_GetTicks();
+ scumm->launch();
// scumm->runScript(1,0,0,&scumm->_bootParam);
@@ -2010,3 +2009,7 @@ int OSystem::waitTick(int delta)
return(delta);
}
+
+OSystem::OSystem(){
+ last_time = SDL_GetTicks();
+}