Cache note skins in NoteField::Load.

Don't reset note skins in PlayerMinus::Load.
This commit is contained in:
Glenn Maynard
2003-10-24 09:37:38 +00:00
parent 3af0a20a4c
commit 454e36b972
2 changed files with 5 additions and 29 deletions
+5 -4
View File
@@ -88,10 +88,11 @@ void NoteField::Load( const NoteData* pNoteData, PlayerNumber pn, int iFirstPixe
this->CopyAll( pNoteData );
ASSERT( GetNumTracks() == GAMESTATE->GetCurrentStyleDef()->m_iColsPerPlayer );
/* Cache the default note skin. It's up to other code to cache any other skins
* that might be used, such as ones assigned as attacks in battle modes. */
LOG->Trace("cache '%s'", GAMESTATE->m_PlayerOptions[pn].m_sNoteSkin.c_str());
CacheNoteSkin( GAMESTATE->m_PlayerOptions[pn].m_sNoteSkin );
/* Cache note skins. */
vector<CString> skins;
GAMESTATE->GetAllUsedNoteSkins( skins );
for( unsigned i=0; i < skins.size(); ++i )
CacheNoteSkin( skins[i] );
RefreshBeatToNoteSkin();
}