aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2012-05-22 10:45:57 +0300
committerFilippos Karapetis2012-05-22 10:50:39 +0300
commit5a8a28bb22ac986e2f18a93fd6afd0252b5a2333 (patch)
tree96129d9bd6cc737e7c47ac5dab47f3d6ddb539ac
parenta3832ecd5d7c16f5be5119edff2024b50bbf2651 (diff)
downloadscummvm-rg350-5a8a28bb22ac986e2f18a93fd6afd0252b5a2333.tar.gz
scummvm-rg350-5a8a28bb22ac986e2f18a93fd6afd0252b5a2333.tar.bz2
scummvm-rg350-5a8a28bb22ac986e2f18a93fd6afd0252b5a2333.zip
SCI: Add a workaround for a hack used in the NRS script patches for QFG3
The patched script 33 in the NRS patch attempts to perform kAbs() on an object. Return a dummy value instead. Fixes bugs #3528416 and #3528542
-rw-r--r--engines/sci/engine/workarounds.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/engine/workarounds.cpp b/engines/sci/engine/workarounds.cpp
index 81c6fbb246..c1d4a3d9f9 100644
--- a/engines/sci/engine/workarounds.cpp
+++ b/engines/sci/engine/workarounds.cpp
@@ -176,6 +176,7 @@ const SciWorkaroundEntry kAbs_workarounds[] = {
{ GID_HOYLE1, 2, 2, 0, "room2", "doit", -1, 0, { WORKAROUND_FAKE, 0x3e9 } }, // old maid - called with objects instead of integers
{ GID_HOYLE1, 3, 3, 0, "room3", "doit", -1, 0, { WORKAROUND_FAKE, 0x3e9 } }, // hearts - called with objects instead of integers
{ GID_QFG1VGA, -1, -1, 0, NULL, "doit", -1, 0, { WORKAROUND_FAKE, 0x3e9 } }, // when the game is patched with the NRS patch
+ { GID_QFG3 , -1, -1, 0, NULL, "doit", -1, 0, { WORKAROUND_FAKE, 0x3e9 } }, // when the game is patched with the NRS patch (bugs #3528416, #3528542)
SCI_WORKAROUNDENTRY_TERMINATOR
};