From 8f25b651e8fc05dc29e6ea5fff5eba1c8df78697 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Thu, 18 Apr 2013 12:10:40 +0200 Subject: WINTERMUTE: Split the timers from BaseGame into a separate class. --- engines/wintermute/base/base_game_music.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/wintermute/base/base_game_music.cpp') diff --git a/engines/wintermute/base/base_game_music.cpp b/engines/wintermute/base/base_game_music.cpp index 8dff41d854..a39deb8d8d 100644 --- a/engines/wintermute/base/base_game_music.cpp +++ b/engines/wintermute/base/base_game_music.cpp @@ -177,7 +177,7 @@ bool BaseGameMusic::updateMusicCrossfade() { _music[_musicCrossfadeChannel2]->play(); } - uint32 currentTime = _gameRef->_liveTimer - _musicCrossfadeStartTime; + uint32 currentTime = _gameRef->getLiveTimer()->getTime() - _musicCrossfadeStartTime; if (currentTime >= _musicCrossfadeLength) { _musicCrossfadeRunning = false; @@ -469,7 +469,7 @@ bool BaseGameMusic::scCallMethod(ScScript *script, ScStack *stack, ScStack *this return STATUS_OK; } - _musicCrossfadeStartTime = _gameRef->_liveTimer; + _musicCrossfadeStartTime = _gameRef->getLiveTimer()->getTime(); _musicCrossfadeChannel1 = channel1; _musicCrossfadeChannel2 = channel2; _musicCrossfadeLength = fadeLength; -- cgit v1.2.3