diff options
Diffstat (limited to 'engines/titanic/core/game_object.cpp')
-rw-r--r-- | engines/titanic/core/game_object.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index bcdf77b675..beee255c2d 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -1151,7 +1151,15 @@ void CGameObject::lockMouse() { gameMan->lockInputHandler(); if (CScreenManager::_screenManagerPtr->_mouseCursor) - CScreenManager::_screenManagerPtr->_mouseCursor->hide(); + CScreenManager::_screenManagerPtr->_mouseCursor->incBusyCount(); +} + +void CGameObject::unlockMouse() { + if (CScreenManager::_screenManagerPtr->_mouseCursor) + CScreenManager::_screenManagerPtr->_mouseCursor->decBusyCount(); + + CGameManager *gameMan = getGameManager(); + gameMan->unlockInputHandler(); } void CGameObject::hideMouse() { @@ -1192,14 +1200,6 @@ void CGameObject::unlockInputHandler() { getGameManager()->unlockInputHandler(); } -void CGameObject::unlockMouse() { - if (CScreenManager::_screenManagerPtr->_mouseCursor) - CScreenManager::_screenManagerPtr->_mouseCursor->show(); - - CGameManager *gameMan = getGameManager(); - gameMan->unlockInputHandler(); -} - void CGameObject::loadSurface() { if (!_surface && !_resource.empty()) { loadResource(_resource); |