From 8eab5b1c0b7035c5d43edd837824935fbb52e8ec Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 3 Apr 2008 01:08:48 +0000 Subject: [PATCH] add MaxInputLatencySeconds --- stepmania/src/Player.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 5d20995fd2..edd42e81a3 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -120,6 +120,7 @@ static Preference m_fTimingWindowScale ( "TimingWindowScale", 1.0f ); static Preference m_fTimingWindowAdd ( "TimingWindowAdd", 0 ); static Preference1D m_fTimingWindowSeconds( TimingWindowSecondsInit, NUM_TimingWindow ); static Preference m_fTimingWindowJump ( "TimingWindowJump", 0.25 ); +static Preference m_fMaxInputLatencySeconds ( "MaxInputLatencySeconds", 0.0 ); Preference g_fTimingWindowHopo ( "TimingWindowHopo", 0.25 ); // max time between notes in a hopo chain Preference g_fTimingWindowStrum ( "TimingWindowStrum", 0.1f ); // max time between strum and when the frets must match ThemeMetric INITIAL_HOLD_LIFE ( "Player", "InitialHoldLife" ); @@ -2718,7 +2719,8 @@ float Player::GetMaxStepDistanceSeconds() fMax = max( fMax, GetWindowSeconds(TW_W3) ); fMax = max( fMax, GetWindowSeconds(TW_W2) ); fMax = max( fMax, GetWindowSeconds(TW_W1) ); - return GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate * fMax; + float f = GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate * fMax; + return f + m_fMaxInputLatencySeconds; } void Player::FadeToFail()