NScumm.Scumm.ScummEngine.JumpRelative C# (CSharp) Метод

JumpRelative() защищенный Метод

protected JumpRelative ( bool condition ) : void
condition bool
Результат void
        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");
            }
        }
ScummEngine