From 1f369f298a21a81000fa1c9c22300c7f6721ece6 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 24 Apr 2005 06:30:32 +0000 Subject: [PATCH] sync behavior of InputQueue::MatchesSequence overloads --- stepmania/src/InputQueue.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/InputQueue.cpp b/stepmania/src/InputQueue.cpp index 40790e1d03..85a4353d82 100644 --- a/stepmania/src/InputQueue.cpp +++ b/stepmania/src/InputQueue.cpp @@ -61,6 +61,9 @@ bool InputQueue::MatchesSequence( GameController c, const GameButton* button_seq if( c == GAME_CONTROLLER_INVALID ) return false; + if( fMaxSecondsBack == -1 ) + fMaxSecondsBack = 0.4f + iNumButtons*0.15f; + float fOldestTimeAllowed = RageTimer::GetTimeSinceStart() - fMaxSecondsBack; int sequence_index = iNumButtons-1; // count down