aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk
diff options
context:
space:
mode:
authorAlyssa Milburn2011-01-21 10:59:49 +0000
committerAlyssa Milburn2011-01-21 10:59:49 +0000
commit94ac240761e19c3fa03e57d09cf4755cc6a30210 (patch)
treed6b9c5df5a4998da1c9cdd394d8101dadc7978ab /engines/mohawk
parent14d74d206381cb23e717557ea71910efa74b1e11 (diff)
downloadscummvm-rg350-94ac240761e19c3fa03e57d09cf4755cc6a30210.tar.gz
scummvm-rg350-94ac240761e19c3fa03e57d09cf4755cc6a30210.tar.bz2
scummvm-rg350-94ac240761e19c3fa03e57d09cf4755cc6a30210.zip
MOHAWK: Fix two CSTime cursor shape/state checks.
(Thanks to [md5]/thebluegr.) svn-id: r55371
Diffstat (limited to 'engines/mohawk')
-rw-r--r--engines/mohawk/cstime_game.cpp3
-rw-r--r--engines/mohawk/cstime_ui.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/engines/mohawk/cstime_game.cpp b/engines/mohawk/cstime_game.cpp
index 867f5c7729..57dffabd80 100644
--- a/engines/mohawk/cstime_game.cpp
+++ b/engines/mohawk/cstime_game.cpp
@@ -556,8 +556,7 @@ void CSTimeConversation::mouseMove(Common::Point &pos) {
}
if (_currHover != (uint)~0) {
- // FIXME: cursorGetState() returns a bool, so this check below can never be true
- if (_vm->getInterface()->cursorGetState() != 3) {
+ if (_vm->getInterface()->cursorGetShape() != 3) {
_vm->getInterface()->cursorSetShape(1, true);
if (_vm->getInterface()->getInventoryDisplay()->getState() != 4)
unhighlightLine(_currHover);
diff --git a/engines/mohawk/cstime_ui.cpp b/engines/mohawk/cstime_ui.cpp
index 08f70ea291..19c3ccc3da 100644
--- a/engines/mohawk/cstime_ui.cpp
+++ b/engines/mohawk/cstime_ui.cpp
@@ -471,7 +471,7 @@ void CSTimeInterface::mouseUp(Common::Point pos) {
}
void CSTimeInterface::cursorOverHotspot() {
- if (cursorGetState() != 1)
+ if (!cursorGetState())
return;
if (_state == kCSTimeInterfaceStateDragStart || _state == kCSTimeInterfaceStateDragging)
return;