From 353e5a78967e2ab1afdeb3ce9b482e0b455b3880 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 9 Mar 2008 09:28:10 +0000 Subject: Add hack to skip the faulty credits script in Russian HE99 version of Freddi Fish 3. svn-id: r31080 --- engines/scumm/he/script_v72he.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/scumm/he') diff --git a/engines/scumm/he/script_v72he.cpp b/engines/scumm/he/script_v72he.cpp index 8cc87d74b6..3cc48f84cc 100644 --- a/engines/scumm/he/script_v72he.cpp +++ b/engines/scumm/he/script_v72he.cpp @@ -792,6 +792,14 @@ void ScummEngine_v72he::o72_startScript() { getStackList(args, ARRAYSIZE(args)); script = pop(); flags = fetchScriptByte(); + + // HACK: The credits script in Russian HE99 version of Freddi Fish 3 + // uses null strings, causing various errors, so skip it. + if (_game.id == GID_FREDDI3 && _game.heversion == 99 && _language == Common::RU_RUS && + _currentRoom == 40 && script == 2057) { + return; + } + runScript(script, (flags == 199 || flags == 200), (flags == 195 || flags == 200), args); } -- cgit v1.2.3