merge dupe code into GrayArrow::Load

This commit is contained in:
Glenn Maynard
2003-09-12 06:37:10 +00:00
parent b0adf33f18
commit f79f9ad322
6 changed files with 27 additions and 29 deletions
+1 -12
View File
@@ -36,18 +36,7 @@ void NoteFieldPlus::Load( NoteData* pNoteData, PlayerNumber pn, int iFirstPixelT
// GrayArrowRow
//
for( c=0; c<m_iNumCols; c++ )
{
CString Button = g_NoteFieldMode[m_PlayerNumber].GrayButtonNames[c];
if(Button == "")
Button = NoteSkinManager::ColToButtonName(c);
CString sPath = NOTESKIN->GetPathTo(pn, Button, "receptor");
m_GrayArrow[c].Load( sPath );
// XXX
if( m_GrayArrow[c].GetNumStates() != 2 &&
m_GrayArrow[c].GetNumStates() != 3 )
RageException::Throw( "'%s' must have 2 or 3 frames", sPath.c_str() );
}
m_GrayArrow[c].Load( pn, c );
//