[Scummvm-cvs-logs] SF.net SVN: scummvm:[40067] scummvm/branches/branch-0-13-0/engines/agos/ subroutine.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Wed Apr 22 12:40:41 CEST 2009
Revision: 40067
http://scummvm.svn.sourceforge.net/scummvm/?rev=40067&view=rev
Author: Kirben
Date: 2009-04-22 10:40:41 +0000 (Wed, 22 Apr 2009)
Log Message:
-----------
Add work around for bug in English 4CD version of The Feeble Files.
Modified Paths:
--------------
scummvm/branches/branch-0-13-0/engines/agos/subroutine.cpp
Modified: scummvm/branches/branch-0-13-0/engines/agos/subroutine.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/engines/agos/subroutine.cpp 2009-04-22 10:37:20 UTC (rev 40066)
+++ scummvm/branches/branch-0-13-0/engines/agos/subroutine.cpp 2009-04-22 10:40:41 UTC (rev 40067)
@@ -578,6 +578,22 @@
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list