move Jump window and Hopo window values to be preferences

This commit is contained in:
Chris Danford
2006-12-11 12:59:32 +00:00
parent 2093deec52
commit 668158658e
3 changed files with 11 additions and 6 deletions
+4 -1
View File
@@ -2179,6 +2179,9 @@ bool NoteDataUtil::GetPrevEditorPosition( const NoteData& in, int &rowInOut )
return true;
}
extern Preference<float> g_fTimingWindowHopo;
void NoteDataUtil::SetHopoPossibleFlags( const Song *pSong, NoteData& ndInOut )
{
float fLastRowMusicSeconds = -1;
@@ -2189,7 +2192,7 @@ void NoteDataUtil::SetHopoPossibleFlags( const Song *pSong, NoteData& ndInOut )
float fSeconds = pSong->GetElapsedTimeFromBeat( fBeat );
int iLastTapTrack = ndInOut.GetLastTrackWithTapOrHoldHead( r );
if( iLastTapTrack != -1 && fSeconds <= fLastRowMusicSeconds + HOPO_CHAIN_SECONDS )
if( iLastTapTrack != -1 && fSeconds <= fLastRowMusicSeconds + g_fTimingWindowHopo )
{
int iNumNotesInRow = ndInOut.GetNumTapNotesInRow( r );
TapNote &tn = ndInOut.FindTapNote( iLastTapTrack, r )->second;