From e23696d90077bbda05421a72ee3290bb00e52b22 Mon Sep 17 00:00:00 2001 From: athrxx Date: Wed, 16 Feb 2011 16:31:22 +0100 Subject: KYRA/LOL: add comments for last commit --- engines/kyra/kyra_hof.cpp | 3 +++ engines/kyra/kyra_lok.cpp | 3 +++ engines/kyra/kyra_mr.cpp | 3 +++ engines/kyra/lol.cpp | 3 +++ 4 files changed, 12 insertions(+) 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); } -- cgit v1.2.3