hack in SGameplay to allow simplifications elsewhere

only cache the current note skin
This commit is contained in:
Glenn Maynard
2006-01-12 19:24:13 +00:00
parent c682db354e
commit 9fc5844357
2 changed files with 23 additions and 6 deletions
+2 -6
View File
@@ -77,12 +77,8 @@ void NoteField::CacheNoteSkin( const CString &sNoteSkin_ )
void NoteField::CacheAllUsedNoteSkins()
{
/* Cache all note skins that we might need for the whole song, course or battle
* play, so we don't have to load them later (such as between course songs). */
vector<CString> skins;
GAMESTATE->GetAllUsedNoteSkins( skins );
for( unsigned i=0; i < skins.size(); ++i )
CacheNoteSkin( skins[i] );
CString sNoteSkin = m_pPlayerState->m_PlayerOptions.m_sNoteSkin;
CacheNoteSkin( sNoteSkin );
}
void NoteField::Init( const PlayerState* pPlayerState, float fYReverseOffsetPixels )