move Jump window and Hopo window values to be preferences
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user