diff options
-rw-r--r-- | engines/director/score.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index e55a12a62d..c6317b9fd5 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -1324,6 +1324,15 @@ void Score::update() { if (_currentFrame >= _frames.size()) return; + Common::SortedArray<Label *>::iterator i; + if (_labels != NULL) { + for (i = _labels->begin(); i != _labels->end(); ++i) { + if ((*i)->number == _currentFrame) { + _currentLabel = (*i)->name; + } + } + } + debugC(1, kDebugImages, "****************************** Current frame: %d", _currentFrame); _surface->clear(); @@ -1346,15 +1355,6 @@ void Score::update() { _lingo->processEvent(kEventNone); // TODO Director 6 - another order - Common::SortedArray<Label *>::iterator i; - if (_labels != NULL) { - for (i = _labels->begin(); i != _labels->end(); ++i) { - if ((*i)->number == _currentFrame) { - _currentLabel = (*i)->name; - } - } - } - byte tempo = _frames[_currentFrame]->_tempo; if (tempo) { |