fix this up

fix hold dimming
fix holds in play mode in the editor when the autoplay pref is on
This commit is contained in:
Glenn Maynard
2002-12-18 22:25:24 +00:00
parent ee4051872f
commit 971040da84
2 changed files with 22 additions and 19 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ void NoteField::Load( NoteData* pNoteData, PlayerNumber pn, int iPixelsToDrawBeh
m_fPercentFadeToFail = -1;
NoteDataWithScoring::Init(pNoteData->GetNumTapNotes(), pNoteData->GetNumHoldNotes());
NoteDataWithScoring::Init();
m_bIsHoldingHoldNote.clear();
m_bIsHoldingHoldNote.insert(m_bIsHoldingHoldNote.end(), pNoteData->GetNumTapNotes(), false);
@@ -220,7 +220,7 @@ void NoteField::DrawPrimitives()
for( i=0; i < GetNumHoldNotes(); i++ )
{
const HoldNote &hn = GetHoldNote(i);
HoldNoteScore &hns = GetHoldNoteScore(i);
const HoldNoteScore hns = GetHoldNoteScore(i);
const float fLife = GetHoldNoteLife(i);
const bool bIsHoldingNote = m_bIsHoldingHoldNote[i]; // hack: added -1 because hn.m_iStartIndex changes as note is held