diff options
author | Paul Gilbert | 2016-10-29 22:41:37 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-10-29 22:41:37 -0400 |
commit | 525c9100e83e4eb695ce5db0c163121ef95befce (patch) | |
tree | 468add621237937b8781e374ec163f1094bf7d53 /engines/titanic/game/service_elevator_window.cpp | |
parent | 120ffa50ec43ac9c2a903bbd3786c2bffe0dc51c (diff) | |
download | scummvm-rg350-525c9100e83e4eb695ce5db0c163121ef95befce.tar.gz scummvm-rg350-525c9100e83e4eb695ce5db0c163121ef95befce.tar.bz2 scummvm-rg350-525c9100e83e4eb695ce5db0c163121ef95befce.zip |
TITANIC: Fix playback elevator background at correct speed
Diffstat (limited to 'engines/titanic/game/service_elevator_window.cpp')
-rw-r--r-- | engines/titanic/game/service_elevator_window.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/titanic/game/service_elevator_window.cpp b/engines/titanic/game/service_elevator_window.cpp index 13db7a26f8..f49f2fa308 100644 --- a/engines/titanic/game/service_elevator_window.cpp +++ b/engines/titanic/game/service_elevator_window.cpp @@ -61,14 +61,14 @@ void CServiceElevatorWindow::load(SimpleFile *file) { bool CServiceElevatorWindow::ServiceElevatorFloorChangeMsg(CServiceElevatorFloorChangeMsg *msg) { if (getView() == findView()) { CDoorbot *doorbot = dynamic_cast<CDoorbot *>(findRoom()->findByName("Doorbot")); - int val = (_fieldE8 && doorbot) ? 65 : 15; + int fps = (_fieldE8 && doorbot) ? 65 : 15; CMovieClip *clip = _movieClips.findByName("Going Up"); if (!clip) return true; - int count = _endFrame - _startFrame; - setMovieFrameRate(1.0 * count / val); + int count = clip->_endFrame - clip->_startFrame; + setMovieFrameRate(1.0 * count / fps); int startFrame = clip->_startFrame + count * FACTORS[msg->_value1] / 100; int endFrame = clip->_startFrame + count * FACTORS[msg->_value2] / 100; |