mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-22 01:39:57 +00:00
LASTEXPRESS: Simplify current frame calculation in Animation::process
(per Max suggestion) svn-id: r54366
This commit is contained in:
parent
c19e8377f9
commit
2a6519ca2e
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user