diff options
author | Paul Gilbert | 2012-10-06 00:52:52 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-10-06 00:52:52 +1000 |
commit | b718039a8a1041b70db56be5c76e876f8c130079 (patch) | |
tree | c49ad597e288492bf09d02ffb8317d441dca86b7 | |
parent | fc9fc47e5f12665e8e24b5f40a05a546ff3666fc (diff) | |
download | scummvm-rg350-b718039a8a1041b70db56be5c76e876f8c130079.tar.gz scummvm-rg350-b718039a8a1041b70db56be5c76e876f8c130079.tar.bz2 scummvm-rg350-b718039a8a1041b70db56be5c76e876f8c130079.zip |
HOPKINS: Bugfixes for startup manager initialisations
-rw-r--r-- | engines/hopkins/events.cpp | 6 | ||||
-rw-r--r-- | engines/hopkins/graphics.cpp | 1 | ||||
-rw-r--r-- | engines/hopkins/objects.cpp | 1 |
3 files changed, 3 insertions, 5 deletions
diff --git a/engines/hopkins/events.cpp b/engines/hopkins/events.cpp index b1c70ff02b..b60562c92d 100644 --- a/engines/hopkins/events.cpp +++ b/engines/hopkins/events.cpp @@ -36,7 +36,7 @@ EventsManager::EventsManager() { mouse_linux = false; souris_sizex = souris_sizey = 0; ofset_souris_x = ofset_souris_y = 0; - _vm->_eventsManager.start_x = start_y = 0; + start_x = start_y = 0; CASSE = false; souris_n = 0; souris_bb = 0; @@ -183,9 +183,9 @@ void EventsManager::CONTROLE_MES() { void EventsManager::checkForNextFrameCounter() { uint32 milli = g_system->getMillis(); - if ((milli - _priorFrameTime) >= GAME_FRAME_TIME) { + if ((milli - _priorFrameTime) >= 10) { _priorFrameTime = milli; - ++lItCounter; + lItCounter += 3; g_system->updateScreen(); } diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp index 9a93b8eca9..64013cd215 100644 --- a/engines/hopkins/graphics.cpp +++ b/engines/hopkins/graphics.cpp @@ -43,7 +43,6 @@ GraphicsManager::GraphicsManager() { nbrligne = 0; Linear = false; VideoPtr = NULL; - _vm->_eventsManager.start_x = 0; ofscroll = 0; SCROLL = 0; PCX_L = PCX_H = 0; diff --git a/engines/hopkins/objects.cpp b/engines/hopkins/objects.cpp index b650c888a7..40689b11ee 100644 --- a/engines/hopkins/objects.cpp +++ b/engines/hopkins/objects.cpp @@ -42,7 +42,6 @@ ObjectsManager::ObjectsManager() { SL_X = SL_Y = 0; I_old_x = I_old_y = 0; FLAG_VISIBLE_EFFACE = 0; - _vm->_globals.Winventaire = PTRNUL; inventaire2 = PTRNUL; SL_SPR = PTRNUL; SL_SPR2 = PTRNUL; |