diff options
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/kyra_hof.cpp | 3 | ||||
-rw-r--r-- | engines/kyra/kyra_lok.cpp | 3 | ||||
-rw-r--r-- | engines/kyra/kyra_mr.cpp | 3 | ||||
-rw-r--r-- | engines/kyra/lol.cpp | 3 |
4 files changed, 12 insertions, 0 deletions
diff --git a/engines/kyra/kyra_hof.cpp b/engines/kyra/kyra_hof.cpp index 49b1d17d73..990e55bcf2 100644 --- a/engines/kyra/kyra_hof.cpp +++ b/engines/kyra/kyra_hof.cpp @@ -505,6 +505,9 @@ void KyraEngine_HoF::runLoop() { removeInputTop(); if (_updateHandItemCursor) { + // This works around an issue which would occur when setHandItem(_itemInHand) + // was called from inside loadGameState(). When loading via GMM the + // mouse cursor would not be set correctly. _updateHandItemCursor = false; setHandItem(_itemInHand); } diff --git a/engines/kyra/kyra_lok.cpp b/engines/kyra/kyra_lok.cpp index 4468a53a94..7526216066 100644 --- a/engines/kyra/kyra_lok.cpp +++ b/engines/kyra/kyra_lok.cpp @@ -820,6 +820,9 @@ void KyraEngine_LoK::updateMousePointer(bool forceUpdate) { } if (_updateHandItemCursor) { + // This works around an issue which would occur when setHandItem(_itemInHand) + // was called from inside loadGameState(). When loading via GMM the + // mouse cursor would not be set correctly. _updateHandItemCursor = false; setHandItem(_itemInHand); } diff --git a/engines/kyra/kyra_mr.cpp b/engines/kyra/kyra_mr.cpp index 461ed26710..b863ef5725 100644 --- a/engines/kyra/kyra_mr.cpp +++ b/engines/kyra/kyra_mr.cpp @@ -967,6 +967,9 @@ void KyraEngine_MR::runLoop() { removeInputTop(); if (_updateHandItemCursor) { + // This works around an issue which would occur when setHandItem(_itemInHand) + // was called from inside loadGameState(). When loading via GMM the + // mouse cursor would not be set correctly. _updateHandItemCursor = false; setHandItem(_itemInHand); } diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index 63a36e3387..7003d8c38f 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -932,6 +932,9 @@ void LoLEngine::runLoop() { gui_updateInput(); if (_updateHandItemCursor) { + // This works around an issue which would occur when setHandItem(_itemInHand) + // was called from inside loadGameState(). When loading via GMM the + // mouse cursor would not be set correctly. _updateHandItemCursor = false; setHandItem(_itemInHand); } |