diff options
Diffstat (limited to 'engines/hopkins/script.cpp')
-rw-r--r-- | engines/hopkins/script.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/engines/hopkins/script.cpp b/engines/hopkins/script.cpp index 50a0a90d5c..dbb6edb479 100644 --- a/engines/hopkins/script.cpp +++ b/engines/hopkins/script.cpp @@ -544,7 +544,7 @@ int ScriptManager::handleOpcode(byte *dataP) { _vm->_eventsManager->_mouseButton = _vm->_eventsManager->_curMouseButton; _vm->_globals->_disableInventFl = true; _vm->_graphicsManager->fadeOutLong(); - _vm->_globals->disableHiding(); + _vm->_objectsManager->disableHiding(); _vm->_objectsManager->removeSprite(0); _vm->_fontManager->hideText(5); _vm->_fontManager->hideText(9); @@ -840,7 +840,7 @@ int ScriptManager::handleOpcode(byte *dataP) { break; case 49: { - _vm->_globals->disableHiding(); + _vm->_objectsManager->disableHiding(); _vm->_objectsManager->removeSprite(0); _vm->_objectsManager->OPTI_BOBON(9, 10, -1, 0, 0, 0); @@ -888,7 +888,7 @@ int ScriptManager::handleOpcode(byte *dataP) { _vm->_objectsManager->animateSprite(0); _vm->_objectsManager->stopBobAnimation(9); } - _vm->_globals->enableHiding(); + _vm->_objectsManager->enableHiding(); break; } @@ -899,7 +899,7 @@ int ScriptManager::handleOpcode(byte *dataP) { case 51: { _vm->_graphicsManager->fadeOutLong(); - _vm->_globals->disableHiding(); + _vm->_objectsManager->disableHiding(); _vm->_objectsManager->removeSprite(0); _vm->_fontManager->hideText(5); _vm->_fontManager->hideText(9); @@ -1949,9 +1949,9 @@ int ScriptManager::handleOpcode(byte *dataP) { _vm->_objectsManager->OBSSEUL = true; _vm->_objectsManager->loadLinkFile("IM73a"); _vm->_objectsManager->OBSSEUL = false; - _vm->_globals->enableHiding(); - _vm->_globals->setHidingUseCount(0); - _vm->_globals->setHidingUseCount(1); + _vm->_objectsManager->enableHiding(); + _vm->_objectsManager->setHidingUseCount(0); + _vm->_objectsManager->setHidingUseCount(1); _vm->_graphicsManager->SETCOLOR4(252, 100, 100, 100); _vm->_graphicsManager->SETCOLOR4(253, 100, 100, 100); _vm->_graphicsManager->SETCOLOR4(251, 100, 100, 100); @@ -1960,7 +1960,7 @@ int ScriptManager::handleOpcode(byte *dataP) { case 211: _vm->_objectsManager->removeSprite(0); - _vm->_globals->disableHiding(); + _vm->_objectsManager->disableHiding(); _vm->_soundManager->_specialSoundNum = 211; _vm->_animationManager->playSequence("SECRET2.SEQ", 1, 12, 100, false, true); _vm->_soundManager->_specialSoundNum = 0; @@ -2003,7 +2003,7 @@ int ScriptManager::handleOpcode(byte *dataP) { _vm->_objectsManager->OBSSEUL = true; _vm->_objectsManager->loadLinkFile("IM93a"); _vm->_objectsManager->OBSSEUL = false; - _vm->_globals->enableHiding(); + _vm->_objectsManager->enableHiding(); _vm->_globals->_checkDistanceFl = true; _vm->_objectsManager->_oldCharacterPosX = _vm->_objectsManager->getSpriteX(0); _vm->_objectsManager->resetOldDirection(); @@ -2040,12 +2040,12 @@ int ScriptManager::handleOpcode(byte *dataP) { _vm->_objectsManager->OBSSEUL = true; _vm->_objectsManager->loadLinkFile("IM93c"); _vm->_objectsManager->OBSSEUL = false; - _vm->_globals->enableHiding(); + _vm->_objectsManager->enableHiding(); break; } case 231: - _vm->_globals->disableHiding(); + _vm->_objectsManager->disableHiding(); _vm->_objectsManager->removeSprite(0); _vm->_objectsManager->setBobAnimation(12); do { @@ -2065,11 +2065,11 @@ int ScriptManager::handleOpcode(byte *dataP) { } while (_vm->_objectsManager->getBobAnimDataIdx(12) != 12); _vm->_objectsManager->animateSprite(0); _vm->_objectsManager->stopBobAnimation(12); - _vm->_globals->enableHiding(); + _vm->_objectsManager->enableHiding(); break; case 233: { - _vm->_globals->disableHiding(); + _vm->_objectsManager->disableHiding(); _vm->_objectsManager->removeSprite(0); _vm->_objectsManager->setBobAnimation(11); bool playFl = false; @@ -2082,7 +2082,7 @@ int ScriptManager::handleOpcode(byte *dataP) { playFl = true; } while (_vm->_objectsManager->getBobAnimDataIdx(11) != 13); _vm->_objectsManager->stopBobAnimation(11); - _vm->_globals->enableHiding(); + _vm->_objectsManager->enableHiding(); _vm->_objectsManager->setBobAnimation(13); do { if (_vm->shouldQuit()) |