mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
ZVISION: Fix script bug #6794 - "ZVISION: Yoruk's coffin instant death"
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
This commit is contained in:
parent
14914b2a31
commit
60c06b84b6
@ -480,6 +480,14 @@ ActionMusic::ActionMusic(ZVision *engine, int32 slotkey, const Common::String &l
|
|||||||
}
|
}
|
||||||
_volume = new ValueSlot(engine->getScriptManager(), volumeBuffer);
|
_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() {
|
ActionMusic::~ActionMusic() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user