diff options
author | Travis Howell | 2009-04-21 14:01:43 +0000 |
---|---|---|
committer | Travis Howell | 2009-04-21 14:01:43 +0000 |
commit | 319a4f8aa92a3ff8fb31c9c82bb418abd45464a6 (patch) | |
tree | a7359d45a0d77181271484d0ffcb0c18b1310baa | |
parent | 9d8d3fdb2f2a7424d9d33fa7b255ccb141f340e5 (diff) | |
download | scummvm-rg350-319a4f8aa92a3ff8fb31c9c82bb418abd45464a6.tar.gz scummvm-rg350-319a4f8aa92a3ff8fb31c9c82bb418abd45464a6.tar.bz2 scummvm-rg350-319a4f8aa92a3ff8fb31c9c82bb418abd45464a6.zip |
Add work around for bug in English 4CD version of The Feeble Files.
svn-id: r40048
-rw-r--r-- | engines/agos/subroutine.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/agos/subroutine.cpp b/engines/agos/subroutine.cpp index d7919f028d..aee42f001b 100644 --- a/engines/agos/subroutine.cpp +++ b/engines/agos/subroutine.cpp @@ -576,6 +576,22 @@ restart: sl = (SubroutineLine *)((byte *)sub + sl->next); } + // WORKAROUND: Feeble walks in the incorrect direction, when looking at the Vent in the Research and Testing area of + // the Company Central Command Compound. We manually add the extra script code from the updated English 2CD release, + // which fixed this particular script bug. + if (getGameType() == GType_FF && _language == Common::EN_ANY) { + if (sub->id == 39125 && readVariable(84) == 2) { + writeVariable(1, 1136); + writeVariable(2, 346); + } + if (sub->id == 39126 && readVariable(84) == 2) { + Subroutine *tmpSub = getSubroutineByID(80); + if (tmpSub != NULL) { + startSubroutine(tmpSub); + } + } + } + if (_classMode1) { _subjectItem = nextInByClass(_subjectItem, _classMask); if (!_subjectItem) { |