fix TimingWindowSecondsW5=0 causes late notes not to be judged

This commit is contained in:
Glenn Maynard
2007-03-09 18:47:03 +00:00
parent 53dcc71e11
commit f5724a2aba
+7 -1
View File
@@ -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()