pass TapNote to GhostArrowRow::SetHoldShowing
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user