aboutsummaryrefslogtreecommitdiff
path: root/engines/access/amazon
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-17 23:15:32 -0400
committerPaul Gilbert2014-08-17 23:15:32 -0400
commitd570da065ec422132b4dd409b9b4ecf9cea92fc8 (patch)
tree785de4a976ee172ecc375e93f2e73299e561e3da /engines/access/amazon
parent5ec8c445bd21e9b7fd592bf1cc8785a0d44bde23 (diff)
downloadscummvm-rg350-d570da065ec422132b4dd409b9b4ecf9cea92fc8.tar.gz
scummvm-rg350-d570da065ec422132b4dd409b9b4ecf9cea92fc8.tar.bz2
scummvm-rg350-d570da065ec422132b4dd409b9b4ecf9cea92fc8.zip
ACCESS: Fix selecting location for player to walk to
Diffstat (limited to 'engines/access/amazon')
-rw-r--r--engines/access/amazon/amazon_room.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/access/amazon/amazon_room.cpp b/engines/access/amazon/amazon_room.cpp
index bf3c2501bb..79c70c0b33 100644
--- a/engines/access/amazon/amazon_room.cpp
+++ b/engines/access/amazon/amazon_room.cpp
@@ -148,14 +148,17 @@ void AmazonRoom::mainAreaClick() {
switch (checkBoxes1(_vm->_events->_mousePos)) {
case 0:
_game->_jasMayaFlag = 0;
- break;
+ return;
case 1:
_game->_jasMayaFlag = 1;
- break;
+ return;
default:
break;
}
- }
+ }
+
+ _vm->_player->_moveTo = _vm->_events->_mousePos;
+ _vm->_player->_playerMove = true;
} else if (_vm->_events->_mousePos.x >= _vm->_screen->_windowXAdd &&
_vm->_events->_mousePos.x <= _vm->_screen->_vWindowBytesWide &&
_vm->_events->_mousePos.y >= _vm->_screen->_windowYAdd &&