diff options
-rw-r--r-- | engines/access/access.cpp | 1 | ||||
-rw-r--r-- | engines/access/access.h | 1 | ||||
-rw-r--r-- | engines/access/martian/martian_resources.cpp | 9 | ||||
-rw-r--r-- | engines/access/martian/martian_resources.h | 2 | ||||
-rw-r--r-- | engines/access/scripts.cpp | 10 |
5 files changed, 18 insertions, 5 deletions
diff --git a/engines/access/access.cpp b/engines/access/access.cpp index adcb5facd6..1daba74d5d 100644 --- a/engines/access/access.cpp +++ b/engines/access/access.cpp @@ -98,6 +98,7 @@ AccessEngine::AccessEngine(OSystem *syst, const AccessGameDescription *gameDesc) for (int i = 0; i < 16; i++) ASK[i]; _startAboutItem = _startAboutBox = 0; + _byte26CB5 = 0; _vidEnd = false; } diff --git a/engines/access/access.h b/engines/access/access.h index 94e27e83c1..7882833bd9 100644 --- a/engines/access/access.h +++ b/engines/access/access.h @@ -218,6 +218,7 @@ public: int _startAboutBox; int BOXDATASTART; int BOXSELECTY; + byte _byte26CB5; // bool _vidEnd; diff --git a/engines/access/martian/martian_resources.cpp b/engines/access/martian/martian_resources.cpp index 72839a243e..c976fe29ad 100644 --- a/engines/access/martian/martian_resources.cpp +++ b/engines/access/martian/martian_resources.cpp @@ -859,5 +859,14 @@ const char *const DEATHMESSAGE[] = { "ONCE DANGERFIELD GETS OUT OF HIS CHAMBER, HE PULLS OUT A WEAPON AND LETS YOU HAVE IT." }; +const byte _byte1EEB5[] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, + 1 +}; + } // End of namespace Martian } // End of namespace Access diff --git a/engines/access/martian/martian_resources.h b/engines/access/martian/martian_resources.h index a6dc81d000..e758a8944a 100644 --- a/engines/access/martian/martian_resources.h +++ b/engines/access/martian/martian_resources.h @@ -61,6 +61,8 @@ extern const char *const ASKTBL[]; extern const byte DEATH_SCREENS[]; extern const char *const DEATHMESSAGE[]; +extern const byte _byte1EEB5[]; + } // End of namespace Martian } // End of namespace Access diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index a50509dcd6..0daa1b9899 100644 --- a/engines/access/scripts.cpp +++ b/engines/access/scripts.cpp @@ -628,11 +628,11 @@ void Scripts::cmdDoTravel() { if (type != 2) { int idx = TMPLPTR[boxX]; - warning("TODO: if (_byte1EEB5[idx] != _byte26CB5) {"); - // _vm->_bubbleBox->_bubbleTitle = "TRAVEL"; - // _vm->_scripts->printString("YOU CAN'T GET THERE FROM HERE."); - // continue; - // } + if (Martian::_byte1EEB5[idx] != _vm->_byte26CB5) { + _vm->_bubbleBox->_bubbleTitle = "TRAVEL"; + _vm->_scripts->printString("YOU CAN'T GET THERE FROM HERE."); + continue; + } if (_vm->_player->_roomNumber != idx) { if (Martian::TRAVEL_POS[idx][0] == -1) { _vm->_player->_roomNumber = idx; |