From 2a6519ca2e33298b43f410cad279eda6e0b10bb1 Mon Sep 17 00:00:00 2001 From: Julien Templier Date: Fri, 19 Nov 2010 10:55:21 +0000 Subject: LASTEXPRESS: Simplify current frame calculation in Animation::process (per Max suggestion) svn-id: r54366 --- engines/lastexpress/data/animation.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/lastexpress/data/animation.cpp') diff --git a/engines/lastexpress/data/animation.cpp b/engines/lastexpress/data/animation.cpp index f3179749c0..cc44d6869e 100644 --- a/engines/lastexpress/data/animation.cpp +++ b/engines/lastexpress/data/animation.cpp @@ -106,8 +106,11 @@ bool Animation::process() { if (_stream == NULL || _chunks.size() == 0) error("Trying to show an animation before loading data"); - // TODO: substract the time paused by the GUI - int32 currentFrame = Common::Rational((g_engine->_system->getMillis() - _startTime) * 100, 3333).toInt(); + // TODO: - subtract the time paused by the GUI + // - Re-implement to be closer to the original engine + // - Add support for subtitles + // - Use engine sound queue instead of our own appendable sound instance + int32 currentFrame = (g_engine->_system->getMillis() - _startTime) * 3 / 100; // Process all chunks until the current frame while (!_changed && _currentChunk != NULL && currentFrame > _currentChunk->frame && !hasEnded()) { -- cgit v1.2.3