[Scummvm-cvs-logs] SF.net SVN: scummvm:[33951] scummvm/branches/branch-0-12-0/engines/cine/ script_fw.cpp
buddha_ at users.sourceforge.net
buddha_ at users.sourceforge.net
Sun Aug 17 00:18:06 CEST 2008
Revision: 33951
http://scummvm.svn.sourceforge.net/scummvm/?rev=33951&view=rev
Author: buddha_
Date: 2008-08-16 22:18:06 +0000 (Sat, 16 Aug 2008)
Log Message:
-----------
Backport of r33950: Workaround for bug #2054882 (FW: Impossible to survive entering monastery (regression)):
For Future Wars o1_compareGlobalVar now compares global variable 255 to be equal to everything.
The scripts probably tested global variable 255 for equality with some value (Maybe 143?)
to see whether copy protection was properly passed.
Modified Paths:
--------------
scummvm/branches/branch-0-12-0/engines/cine/script_fw.cpp
Modified: scummvm/branches/branch-0-12-0/engines/cine/script_fw.cpp
===================================================================
--- scummvm/branches/branch-0-12-0/engines/cine/script_fw.cpp 2008-08-16 22:15:57 UTC (rev 33950)
+++ scummvm/branches/branch-0-12-0/engines/cine/script_fw.cpp 2008-08-16 22:18:06 UTC (rev 33951)
@@ -1493,7 +1493,18 @@
debugC(5, kCineDebugScript, "Line: %d: compare globalVars[%d] and %d", _line, varIdx, value);
- _compare = compareVars(_globalVars[varIdx], value);
+ // WORKAROUND for bug #2054882. Without this, the monks will always
+ // kill you as an impostor, even if you enter the monastery in disguise.
+ //
+ // TODO: Check whether this might be worked around in some other way
+ // like setting global variable 255 to 143 in Future Wars (This is
+ // supposedly what Future Wars checks for from time to time during
+ // gameplay to verify that copy protection was successfully passed).
+ if (varIdx == 255 && (g_cine->getGameType() == Cine::GType_FW)) {
+ _compare = kCmpEQ;
+ } else {
+ _compare = compareVars(_globalVars[varIdx], value);
+ }
}
return 0;
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