pass TapNote to GhostArrowRow::SetHoldShowing

This commit is contained in:
Glenn Maynard
2007-05-13 16:15:11 +00:00
parent 6a665f43fb
commit 8ea63dbbd6
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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;
+2 -1
View File
@@ -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;
+1 -1
View File
@@ -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) );