[sm130futures] Use the macro or lose it.

This commit is contained in:
Jason Felds
2011-04-05 19:47:07 -04:00
parent b4c76dae0f
commit f80940a34e
+4 -6
View File
@@ -864,15 +864,13 @@ void NoteField::DrawPrimitives()
} }
// Label text // Label text
const vector<LabelSegment> &lLabelSegments = GAMESTATE->m_pCurSong->m_Timing.m_LabelSegments; FOREACH_CONST( LabelSegment, GAMESTATE->m_pCurSong->m_Timing.m_LabelSegments, seg )
for( unsigned i=0; i<lLabelSegments.size(); i++ )
{ {
if( lLabelSegments[i].m_iStartRow >= iFirstRowToDraw && if( seg->m_iStartRow >= iFirstRowToDraw && seg->m_iStartRow <= iLastRowToDraw )
lLabelSegments[i].m_iStartRow <= iLastRowToDraw)
{ {
float fBeat = NoteRowToBeat(lLabelSegments[i].m_iStartRow); float fBeat = NoteRowToBeat(seg->m_iStartRow);
if( IS_ON_SCREEN(fBeat) ) if( IS_ON_SCREEN(fBeat) )
DrawLabelText( fBeat, lLabelSegments[i].m_sLabel ); DrawLabelText( fBeat, seg->m_sLabel );
} }
} }