Ooops, keep that comment.

svn-id: r40034
This commit is contained in:
Travis Howell 2009-04-21 04:48:50 +00:00
parent acc86f5c62
commit 64fef497df

View File

@ -378,6 +378,10 @@ int ScummEngine_v5::getVarOrDirectWord(byte mask) {
}
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;