aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathrxx2011-02-16 16:31:22 +0100
committerathrxx2011-02-16 16:31:22 +0100
commite23696d90077bbda05421a72ee3290bb00e52b22 (patch)
tree0d7a4e481c4423aba8f3b63841f9110cf82cc36e
parentd7e700f370c258a5f4786d972af3666b93b71f94 (diff)
downloadscummvm-rg350-e23696d90077bbda05421a72ee3290bb00e52b22.tar.gz
scummvm-rg350-e23696d90077bbda05421a72ee3290bb00e52b22.tar.bz2
scummvm-rg350-e23696d90077bbda05421a72ee3290bb00e52b22.zip
KYRA/LOL: add comments for last commit
-rw-r--r--engines/kyra/kyra_hof.cpp3
-rw-r--r--engines/kyra/kyra_lok.cpp3
-rw-r--r--engines/kyra/kyra_mr.cpp3
-rw-r--r--engines/kyra/lol.cpp3
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);
}