aboutsummaryrefslogtreecommitdiff
path: root/engines/access/amazon
diff options
context:
space:
mode:
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 &&