From f390d4da751368c6be1c939a2d01f96ab3ac429b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 7 Feb 2005 05:58:23 +0000 Subject: [PATCH] only do a separate search for keys if the initial search didn't find anything; if we're testing a tap to grade it, always use that tap's key, too --- stepmania/src/Player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 51850f56fe..caa9cf8151 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -911,7 +911,8 @@ void Player::Step( int col, const RageTimer &tm ) /* Search for keyed sounds separately. If we can't find a nearby note, search * backwards indefinitely, and ignore grading. */ - iIndexOverlappingNote = GetClosestNote( col, BeatToNoteRow(fSongBeat), + if( iIndexOverlappingNote == -1 ) + iIndexOverlappingNote = GetClosestNote( col, BeatToNoteRow(fSongBeat), iStepSearchRows, MAX_NOTE_ROW, true );