merge dupe code into GrayArrow::Load
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user