aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo/video.cpp
diff options
context:
space:
mode:
authorStrangerke2016-11-28 22:33:39 -0800
committerEugene Sandulenko2017-01-25 22:42:09 +0100
commit944524be92991743568d3c8a6229cd44c2f67822 (patch)
treeb1836d2c16fecb7008d344b7c4e0e7c7e235e666 /engines/cryo/video.cpp
parent488e681e849bed8ad89dc997939e2798a87ada39 (diff)
downloadscummvm-rg350-944524be92991743568d3c8a6229cd44c2f67822.tar.gz
scummvm-rg350-944524be92991743568d3c8a6229cd44c2f67822.tar.bz2
scummvm-rg350-944524be92991743568d3c8a6229cd44c2f67822.zip
CRYO: Some renaming
Diffstat (limited to 'engines/cryo/video.cpp')
-rw-r--r--engines/cryo/video.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/cryo/video.cpp b/engines/cryo/video.cpp
index 3d4322ef90..521efa274e 100644
--- a/engines/cryo/video.cpp
+++ b/engines/cryo/video.cpp
@@ -85,7 +85,7 @@ void HnmPlayer::setupTimer(float rate) {
// Original name: CLHNM_ResetInternalTimer
void HnmPlayer::resetInternalTimer() {
_timeDrift = 0.0;
- _nextFrameTime = _expectedFrameTime = TimerTicks;
+ _nextFrameTime = _expectedFrameTime = _vm->TimerTicks;
}
// Original name: CLHNM_Reset
@@ -113,10 +113,10 @@ void HnmPlayer::setForceZero2Black(bool forceblack) {
void HnmPlayer::waitLoop(hnm_t *hnm) {
_expectedFrameTime += _rate;
_nextFrameTime = _expectedFrameTime - _timeDrift;
- if (_useSoundSync && TimerTicks > 1000.0 + _nextFrameTime)
+ if (_useSoundSync && _vm->TimerTicks > 1000.0 + _nextFrameTime)
_useSound = false;
- while (TimerTicks < _nextFrameTime) ; // waste time
- _timeDrift = TimerTicks - _nextFrameTime;
+ while (_vm->TimerTicks < _nextFrameTime) ; // waste time
+ _timeDrift = _vm->TimerTicks - _nextFrameTime;
}
// Original name: CLHNM_WantsSound