Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

int Cine::FWScript::o2_gotoIfDiffNearest (  )  [protected, inherited]

Todo:
The assert may produce false positives and requires testing

Definition at line 570 of file script_os.cpp.

References Cine::FWScript::_compare, Cine::FWScript::_info, Cine::FWScript::_labels, Cine::FWScript::_line, Cine::FWScript::_pos, Cine::FWScript::_script, Cine::RawScript::getLabel(), and Cine::FWScript::getNextByte().

                                   {
      byte labelIdx = getNextByte();

      if (_compare != kCmpEQ) {
            assert(_labels[labelIdx] != -1);

            debugC(5, kCineDebugScript, "Line: %d: if(!=) goto nearest %d (true)", _line, labelIdx);
            _pos = _script.getLabel(*_info, labelIdx, _pos);
      } else {
            debugC(5, kCineDebugScript, "Line: %d: if(!=) goto nearest %d (false)", _line, labelIdx);
      }
      return 0;
}


Generated by  Doxygen 1.6.0   Back to index