diff options
author | Paul Gilbert | 2014-11-28 15:06:49 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-12-12 22:50:54 -0500 |
commit | e3322185686f268c0375bcaef93c5ef35209ebdc (patch) | |
tree | 71498ceace43e17dfc7b3f3238f2c3dd0c445fed /engines/access/amazon/amazon_room.cpp | |
parent | 740df9b42aac87472353512d2eda796bdd6d3aa3 (diff) | |
download | scummvm-rg350-e3322185686f268c0375bcaef93c5ef35209ebdc.tar.gz scummvm-rg350-e3322185686f268c0375bcaef93c5ef35209ebdc.tar.bz2 scummvm-rg350-e3322185686f268c0375bcaef93c5ef35209ebdc.zip |
ACCESS: Workaround for Exit/walk icon in massacre site scene
Diffstat (limited to 'engines/access/amazon/amazon_room.cpp')
-rw-r--r-- | engines/access/amazon/amazon_room.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/access/amazon/amazon_room.cpp b/engines/access/amazon/amazon_room.cpp index 4df1131643..ca0d7bf341 100644 --- a/engines/access/amazon/amazon_room.cpp +++ b/engines/access/amazon/amazon_room.cpp @@ -199,6 +199,22 @@ void AmazonRoom::mainAreaClick() { } } +void AmazonRoom::walkCursor() { + // WORKAROUND: For scene 29, which is a normal walkable scene, but yet can be + // 'exitted'. This workaround ensures the scene will only be left if you click + // the Exit icon wgeb the cursor is already a walk cursor + EventsManager &events = *_vm->_events; + + if (_vm->_player->_roomNumber == 29 && events._normalMouse != CURSOR_CROSSHAIRS) { + events._normalMouse = CURSOR_CROSSHAIRS; + events.setCursor(CURSOR_CROSSHAIRS); + _selectCommand = -1; + _vm->_boxSelect = true; + } else { + Room::walkCursor(); + } +} + void AmazonRoom::init4Quads() { if (!_vm->_screen->_vesaMode) return; |