File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -1858,18 +1858,23 @@ void CSoundGen::ResetTempo()
1858
1858
1859
1859
m_iTempoAccum = 0 ;
1860
1860
1861
- if (m_pDocument->GetSongGroove (m_iPlayTrack) && m_pDocument->GetGroove (m_iSpeed) != NULL ) { // // //
1862
- m_iGrooveIndex = m_iSpeed;
1863
- m_iGroovePosition = 0 ;
1864
- if (m_pDocument->GetGroove (m_iGrooveIndex) != NULL )
1865
- m_iSpeed = m_pDocument->GetGroove (m_iGrooveIndex)->GetEntry (m_iGroovePosition);
1866
- }
1861
+ if (theApp.GetSettings ()->General .bRetrieveChanState ) // // //
1862
+ ApplyGlobalState ();
1863
+ // Legacy behavior
1867
1864
else {
1868
- m_iGrooveIndex = -1 ;
1869
- if (m_pDocument->GetSongGroove (m_iPlayTrack))
1870
- m_iSpeed = DEFAULT_SPEED;
1865
+ if (m_pDocument->GetSongGroove (m_iPlayTrack) && m_pDocument->GetGroove (m_iSpeed) != NULL ) { // // //
1866
+ m_iGrooveIndex = m_iSpeed;
1867
+ m_iGroovePosition = 0 ;
1868
+ if (m_pDocument->GetGroove (m_iGrooveIndex) != NULL )
1869
+ m_iSpeed = m_pDocument->GetGroove (m_iGrooveIndex)->GetEntry (m_iGroovePosition);
1870
+ }
1871
+ else {
1872
+ m_iGrooveIndex = -1 ;
1873
+ if (m_pDocument->GetSongGroove (m_iPlayTrack))
1874
+ m_iSpeed = DEFAULT_SPEED;
1875
+ }
1876
+ SetupSpeed ();
1871
1877
}
1872
- SetupSpeed ();
1873
1878
1874
1879
m_bUpdateRow = false ;
1875
1880
}
You can’t perform that action at this time.
0 commit comments