Skip to content

Commit

Permalink
MADS: Improved fix for giving batteries to Herman
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Mar 11, 2015
1 parent 4c76512 commit 0503893
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion engines/mads/nebular/globals_nebular.h
Expand Up @@ -150,7 +150,7 @@ enum GlobalId {
kConvHermit1 = 130,
kConvHermit2 = 131,
kHasTalkedToHermit = 132,
kExecuted_1_11 = 133,
kHermitWantsBatteries = 133,
kHandsetCellStatus = 134,
kBeenInVideoStore = 135,
kDurafailRecharged = 136,
Expand Down
16 changes: 6 additions & 10 deletions engines/mads/nebular/nebular_scenes6.cpp
Expand Up @@ -3275,8 +3275,7 @@ void Scene611::handleSubDialog1() {

// WORKAROUND: Fix bug in the original where the option to give Hermit batteries
// would be given before the player even has any batteries
//if (!_game._objects.isInInventory(OBJ_DURAFAIL_CELLS) && !_game._objects.isInInventory(OBJ_PHONE_CELLS))
// _globals[kExecuted_1_11] = true;
_globals[kHermitWantsBatteries] = true;

setDialogNode(1);
break;
Expand Down Expand Up @@ -3968,14 +3967,11 @@ void Scene611::enter() {
_scene->_hotspots.activate(NOUN_HERMIT, false);
}

/* WORKAROUND: Pretty sure this is a debugging code fragment that should be ignored
if (_globals[kExecuted_1_11]) {
_dialog1.write(0x294, true);
_dialog1.write(0x292, false);
_globals[kExecuted_1_11] = true;
}*/
if ((_game._objects.isInInventory(OBJ_DURAFAIL_CELLS)) || (_game._objects.isInInventory(OBJ_PHONE_CELLS)))
_dialog1.write(0x294, true);
// WORKAROUND: Fix original adding 'give batteries' option even if you don't have them
if (_globals[kHermitWantsBatteries]) {
if ((_game._objects.isInInventory(OBJ_DURAFAIL_CELLS)) || (_game._objects.isInInventory(OBJ_PHONE_CELLS)))
_dialog1.write(0x294, true);
}

if (_duringDialogFl) {
_game._player._playerPos = Common::Point(237, 129);
Expand Down

0 comments on commit 0503893

Please sign in to comment.