protected void JumpRelative(bool condition)
{
// 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).
var offset = (short)FetchScriptWord();
if (!condition)
{
CurrentPos += offset;
if (CurrentPos < 0)
throw new NotSupportedException("Invalid position in JumpRelative");
}
}