From b457c098d84cc44bf7e966e52d7255fcae034191 Mon Sep 17 00:00:00 2001 From: FMS-Cat Date: Tue, 20 Oct 2020 13:24:44 +0900 Subject: [PATCH] comment: fix incorrect comments --- src/Background.cpp | 2 +- src/Foreground.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Background.cpp b/src/Background.cpp index 2f3ec30e76..9311e4a498 100644 --- a/src/Background.cpp +++ b/src/Background.cpp @@ -729,7 +729,7 @@ void BackgroundImpl::Layer::UpdateCurBGChange( const Song *pSong, float fLastMus beat_info.elapsed_time= fCurrentTime; pSong->m_SongTiming.GetBeatAndBPSFromElapsedTime(beat_info); - // Calls to Update() should *not* be scaled by music rate; fCurrentTime is. Undo it. + // Calls to Update() should *not* be scaled by music rate unless RateModsAffectFGChanges is enabled; fCurrentTime is. Undo it. const float fRate = PREFSMAN->m_bRateModsAffectTweens ? 1.0f : GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate; // Find the BGSegment we're in diff --git a/src/Foreground.cpp b/src/Foreground.cpp index 10f8587dd4..0b8de33db4 100644 --- a/src/Foreground.cpp +++ b/src/Foreground.cpp @@ -72,7 +72,7 @@ void Foreground::LoadFromSong( const Song *pSong ) void Foreground::Update( float fDeltaTime ) { - // Calls to Update() should *not* be scaled by music rate. Undo it. + // Calls to Update() should *not* be scaled by music rate unless RateModsAffectFGChanges is enabled. Undo it. const float fRate = PREFSMAN->m_bRateModsAffectTweens ? 1.0f : GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate; for( unsigned i=0; i < m_BGAnimations.size(); ++i )