From d06a14da5252a9eac812b1f9fde8e0fc3477d5e1 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 24 Jun 2011 18:07:47 -0400 Subject: [PATCH] Display the attacks in the editor. --- src/NoteField.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/NoteField.cpp b/src/NoteField.cpp index 70faf81a5f..2d23b62889 100644 --- a/src/NoteField.cpp +++ b/src/NoteField.cpp @@ -1045,6 +1045,22 @@ void NoteField::DrawPrimitives() } } } + else + { + AttackArray &attacks = GAMESTATE->m_bIsUsingStepTiming ? + GAMESTATE->m_pCurSteps[PLAYER_1]->m_Attacks : + GAMESTATE->m_pCurSong->m_Attacks; + FOREACH_CONST(Attack, attacks, a) + { + float fBeat = timing.GetBeatFromElapsedTime(a->fStartSecond); + if (BeatToNoteRow(fBeat) >= iFirstRowToDraw && + BeatToNoteRow(fBeat) <= iLastRowToDraw && + IS_ON_SCREEN(fBeat)) + { + this->DrawAttackText(fBeat, *a); + } + } + } if( !GAMESTATE->m_bIsUsingStepTiming ) {