[Scummvm-cvs-logs] SF.net SVN: scummvm:[40048] scummvm/trunk/engines/agos/subroutine.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Tue Apr 21 16:01:43 CEST 2009
Revision: 40048
http://scummvm.svn.sourceforge.net/scummvm/?rev=40048&view=rev
Author: Kirben
Date: 2009-04-21 14:01:43 +0000 (Tue, 21 Apr 2009)
Log Message:
-----------
Add work around for bug in English 4CD version of The Feeble Files.
Modified Paths:
--------------
scummvm/trunk/engines/agos/subroutine.cpp
Modified: scummvm/trunk/engines/agos/subroutine.cpp
===================================================================
--- scummvm/trunk/engines/agos/subroutine.cpp 2009-04-21 13:41:29 UTC (rev 40047)
+++ scummvm/trunk/engines/agos/subroutine.cpp 2009-04-21 14:01:43 UTC (rev 40048)
@@ -576,6 +576,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