ACCESS: MM - Add resource _byte1EEB5[]

This commit is contained in:
Strangerke 2015-01-12 00:23:28 +01:00
parent ec381ae364
commit eacc0e085a
5 changed files with 18 additions and 5 deletions

View File

@ -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;
}

View File

@ -218,6 +218,7 @@ public:
int _startAboutBox;
int BOXDATASTART;
int BOXSELECTY;
byte _byte26CB5;
//
bool _vidEnd;

View File

@ -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

View File

@ -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

View File

@ -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;