diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/groovie/script.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp index ff70ce2026..344ac44dba 100644 --- a/engines/groovie/script.cpp +++ b/engines/groovie/script.cpp @@ -123,6 +123,14 @@ bool Script::loadScript(Common::String filename) { scriptfile.read(_code, 0x10000); scriptfile.close(); + // Patch the loaded code for known script bugs + if (filename.equals("dr.grv")) { + // WORKAROUND for the cake puzzle glitch (bug #2458322): Lowering the + // piece on the first column and second row updates the wrong script + // variable + _code[0x03C2] = 0x38; + } + // Initialize the script _currentInstruction = 0; |