Skip to content

Commit

Permalink
Make it so the real time delay before a song starts is always the sam…
Browse files Browse the repository at this point in the history
…e independent of playback rate.
  • Loading branch information
xwidghet committed Aug 21, 2016
1 parent b5f7cc7 commit 63c5efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ScreenGameplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ void ScreenGameplay::StartPlayingSong( float fMinTimeToNotes, float fMinTimeToMu
const float fFirstSecond = GAMESTATE->m_pCurSong->GetFirstSecond();
float fStartDelay = fMinTimeToNotes - fFirstSecond;
fStartDelay = max( fStartDelay, fMinTimeToMusic );
p.m_StartSecond = -fStartDelay;
p.m_StartSecond = -fStartDelay * p.m_fSpeed;
}

ASSERT( !m_pSoundMusic->IsPlaying() );
Expand Down

0 comments on commit 63c5efe

Please sign in to comment.