diff --git a/Docs/Changelog_sm-ssc.txt b/Docs/Changelog_sm-ssc.txt index f480c29717..de962bceea 100644 --- a/Docs/Changelog_sm-ssc.txt +++ b/Docs/Changelog_sm-ssc.txt @@ -24,6 +24,7 @@ sm-ssc $NEXTVERSION | 2011???? -------------------------------------------------------------------------------- It depends on who you ask. It could be v1.2.5, it could be v1.3.0, it could even be StepMania 5. +We will wait and see. 20110402 -------- diff --git a/src/NoteField.cpp b/src/NoteField.cpp index c07e13e696..6895b07234 100644 --- a/src/NoteField.cpp +++ b/src/NoteField.cpp @@ -786,80 +786,68 @@ void NoteField::DrawPrimitives() ASSERT(GAMESTATE->m_pCurSong); // BPM text - const vector &aBPMSegments = GAMESTATE->m_pCurSong->m_Timing.m_BPMSegments; - for( unsigned i=0; im_pCurSong->m_Timing.m_BPMSegments, seg ) { - if( aBPMSegments[i].m_iStartRow >= iFirstRowToDraw && - aBPMSegments[i].m_iStartRow <= iLastRowToDraw) + if( seg->m_iStartRow >= iFirstRowToDraw && seg->m_iStartRow <= iLastRowToDraw ) { - float fBeat = NoteRowToBeat(aBPMSegments[i].m_iStartRow); + float fBeat = NoteRowToBeat(seg->m_iStartRow); if( IS_ON_SCREEN(fBeat) ) - DrawBPMText( fBeat, aBPMSegments[i].GetBPM() ); + DrawBPMText( fBeat, seg->GetBPM() ); } } // Freeze text - const vector &aStopSegments = GAMESTATE->m_pCurSong->m_Timing.m_StopSegments; - for( unsigned i=0; im_pCurSong->m_Timing.m_StopSegments, seg ) { - if( aStopSegments[i].m_iStartRow >= iFirstRowToDraw && - aStopSegments[i].m_iStartRow <= iLastRowToDraw) + if( seg->m_iStartRow >= iFirstRowToDraw && seg->m_iStartRow <= iLastRowToDraw ) { - float fBeat = NoteRowToBeat(aStopSegments[i].m_iStartRow); + float fBeat = NoteRowToBeat(seg->m_iStartRow); if( IS_ON_SCREEN(fBeat) ) - DrawFreezeText( fBeat, aStopSegments[i].m_fStopSeconds, aStopSegments[i].m_bDelay ); + DrawFreezeText( fBeat, seg->m_fStopSeconds, seg->m_bDelay ); } } // Warp text - const vector &aWarpSegments = GAMESTATE->m_pCurSong->m_Timing.m_WarpSegments; - for( unsigned i=0; im_pCurSong->m_Timing.m_WarpSegments, seg ) { - if( aWarpSegments[i].m_iStartRow >= iFirstRowToDraw && - aWarpSegments[i].m_iStartRow <= iLastRowToDraw) + if( seg->m_iStartRow >= iFirstRowToDraw && seg->m_iStartRow <= iLastRowToDraw ) { - float fBeat = NoteRowToBeat(aWarpSegments[i].m_iStartRow); + float fBeat = NoteRowToBeat(seg->m_iStartRow); if( IS_ON_SCREEN(fBeat) ) - DrawWarpText( fBeat, aWarpSegments[i].m_fEndBeat ); + DrawWarpText( fBeat, seg->m_fEndBeat ); } } // Time Signature text - const vector &vTimeSignatureSegments = GAMESTATE->m_pCurSong->m_Timing.m_vTimeSignatureSegments; - for( unsigned i=0; im_pCurSong->m_Timing.m_vTimeSignatureSegments, seg ) { - if( vTimeSignatureSegments[i].m_iStartRow >= iFirstRowToDraw && - vTimeSignatureSegments[i].m_iStartRow <= iLastRowToDraw) + if( seg->m_iStartRow >= iFirstRowToDraw && seg->m_iStartRow <= iLastRowToDraw ) { - float fBeat = NoteRowToBeat(vTimeSignatureSegments[i].m_iStartRow); + float fBeat = NoteRowToBeat(seg->m_iStartRow); if( IS_ON_SCREEN(fBeat) ) - DrawTimeSignatureText( fBeat, vTimeSignatureSegments[i].m_iNumerator, vTimeSignatureSegments[i].m_iDenominator ); + DrawTimeSignatureText( fBeat, seg->m_iNumerator, seg->m_iDenominator ); } } - + // Tickcount text - const vector &tTickcountSegments = GAMESTATE->m_pCurSong->m_Timing.m_TickcountSegments; - for( unsigned i=0; im_pCurSong->m_Timing.m_TickcountSegments, seg ) { - if( tTickcountSegments[i].m_iStartRow >= iFirstRowToDraw && - tTickcountSegments[i].m_iStartRow <= iLastRowToDraw) + if( seg->m_iStartRow >= iFirstRowToDraw && seg->m_iStartRow <= iLastRowToDraw ) { - float fBeat = NoteRowToBeat(tTickcountSegments[i].m_iStartRow); + float fBeat = NoteRowToBeat(seg->m_iStartRow); if( IS_ON_SCREEN(fBeat) ) - DrawTickcountText( fBeat, tTickcountSegments[i].m_iTicks ); + DrawTickcountText( fBeat, seg->m_iTicks ); } } // Combo text - const vector &tComboSegments = GAMESTATE->m_pCurSong->m_Timing.m_ComboSegments; - for( unsigned i=0; im_pCurSong->m_Timing.m_ComboSegments, seg ) { - if( tComboSegments[i].m_iStartRow >= iFirstRowToDraw && - tComboSegments[i].m_iStartRow <= iLastRowToDraw) + if( seg->m_iStartRow >= iFirstRowToDraw && seg->m_iStartRow <= iLastRowToDraw ) { - float fBeat = NoteRowToBeat(tComboSegments[i].m_iStartRow); + float fBeat = NoteRowToBeat(seg->m_iStartRow); if( IS_ON_SCREEN(fBeat) ) - DrawComboText( fBeat, tComboSegments[i].m_iCombo ); + DrawComboText( fBeat, seg->m_iCombo ); } }