diff --git a/stepmania/src/GhostArrowRow.cpp b/stepmania/src/GhostArrowRow.cpp index 91902544fb..a436fa48d7 100644 --- a/stepmania/src/GhostArrowRow.cpp +++ b/stepmania/src/GhostArrowRow.cpp @@ -115,7 +115,7 @@ void GhostArrowRow::DidHoldNote( int iCol, HoldNoteScore hns, bool bBright ) m_Ghost[iCol]->PlayCommand( Capitalize(sJudge) ); } -void GhostArrowRow::SetHoldShowing( int iCol ) +void GhostArrowRow::SetHoldShowing( int iCol, const TapNote &tn ) { ASSERT( iCol >= 0 && iCol < (int) m_Ghost.size() ); m_bIsHoldShowing[iCol] = true; diff --git a/stepmania/src/GhostArrowRow.h b/stepmania/src/GhostArrowRow.h index 4c0905a035..3a0d860a93 100644 --- a/stepmania/src/GhostArrowRow.h +++ b/stepmania/src/GhostArrowRow.h @@ -5,6 +5,7 @@ #include "ActorFrame.h" #include "GameConstantsAndTypes.h" +#include "NoteTypes.h" class PlayerState; @@ -20,7 +21,7 @@ public: void DidTapNote( int iCol, TapNoteScore tns, bool bBright ); void DidHoldNote( int iCol, HoldNoteScore hns, bool bBright ); - void SetHoldShowing( int iCol ); + void SetHoldShowing( int iCol, const TapNote &tn ); protected: float m_fYReverseOffsetPixels; diff --git a/stepmania/src/NoteField.cpp b/stepmania/src/NoteField.cpp index b6149cebf8..c12dce2da1 100644 --- a/stepmania/src/NoteField.cpp +++ b/stepmania/src/NoteField.cpp @@ -852,7 +852,7 @@ void NoteField::DrawPrimitives() const bool bHoldGhostShowing = tn.HoldResult.bActive && tn.HoldResult.fLife > 0; const bool bIsHoldingNote = tn.HoldResult.bHeld; if( bHoldGhostShowing ) - m_pCurDisplay->m_GhostArrowRow.SetHoldShowing( c ); + m_pCurDisplay->m_GhostArrowRow.SetHoldShowing( c, tn ); ASSERT_M( NoteRowToBeat(iStartRow) > -2000, ssprintf("%i %i %i", iStartRow, iEndRow, c) );