From f5724a2aba0fc62267c4af53a80ec3ca59621758 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 9 Mar 2007 18:47:03 +0000 Subject: [PATCH] fix TimingWindowSecondsW5=0 causes late notes not to be judged --- stepmania/src/Player.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 0519a01846..b80de62906 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -2391,7 +2391,13 @@ void Player::HandleHoldScore( const TapNote &tn ) float Player::GetMaxStepDistanceSeconds() { - return GAMESTATE->m_SongOptions.GetCurrent().m_fMusicRate * GetWindowSeconds(TW_W5); + float fMax = 0; + fMax = max( fMax, GetWindowSeconds(TW_W5) ); + fMax = max( fMax, GetWindowSeconds(TW_W4) ); + 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; } void Player::FadeToFail()