[Scummvm-cvs-logs] SF.net SVN: scummvm:[40034] scummvm/trunk/engines/scumm/script_v5.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Tue Apr 21 06:48:50 CEST 2009
Revision: 40034
http://scummvm.svn.sourceforge.net/scummvm/?rev=40034&view=rev
Author: Kirben
Date: 2009-04-21 04:48:50 +0000 (Tue, 21 Apr 2009)
Log Message:
-----------
Ooops, keep that comment.
Modified Paths:
--------------
scummvm/trunk/engines/scumm/script_v5.cpp
Modified: scummvm/trunk/engines/scumm/script_v5.cpp
===================================================================
--- scummvm/trunk/engines/scumm/script_v5.cpp 2009-04-21 04:42:45 UTC (rev 40033)
+++ scummvm/trunk/engines/scumm/script_v5.cpp 2009-04-21 04:48:50 UTC (rev 40034)
@@ -378,6 +378,10 @@
}
void ScummEngine_v5::jumpRelative(bool cond) {
+ // We explicitly call ScummEngine::fetchScriptWord()
+ // to make this method work also in v0, which overloads
+ // fetchScriptWord to only read bytes (which is the right thing
+ // to do for most opcodes, but not for jump offsets).
int16 offset = ScummEngine::fetchScriptWord();
if (!cond)
_scriptPointer += offset;
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