Skip to content

Commit

Permalink
ZVISION: Fix script bug #6794 - "ZVISION: Yoruk's coffin instant death"
Browse files Browse the repository at this point in the history
Fixes an edge case where the player goes to the dark room with the grue
without holding a torch, and then quickly runs away before the grue's
sound effect finishes. Many thanks to eriktorbjorn for the original
workaround
  • Loading branch information
bluegr committed Feb 14, 2015
1 parent 14914b2 commit 60c06b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions engines/zvision/scripting/actions.cpp
Expand Up @@ -480,6 +480,14 @@ ActionMusic::ActionMusic(ZVision *engine, int32 slotkey, const Common::String &l
}
_volume = new ValueSlot(engine->getScriptManager(), volumeBuffer);
}

// WORKAROUND for a script bug in Zork Nemesis, rooms mq70/mq80.
// Fixes an edge case where the player goes to the dark room with the grue
// without holding a torch, and then quickly runs away before the grue's
// sound effect finishes. Fixes script bug #6794.
if (engine->getGameId() == GID_NEMESIS && _slotKey == 14822 && engine->getScriptManager()->getStateValue(_slotKey) == 2)
engine->getScriptManager()->setStateValue(_slotKey, 0);

}

ActionMusic::~ActionMusic() {
Expand Down

0 comments on commit 60c06b8

Please sign in to comment.