From 93ef4ec22ea5c542fe6b4c020c3d661afe081ce7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 29 Sep 2003 07:39:37 +0000 Subject: [PATCH] fix noteskin caching --- stepmania/src/Player.cpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 01fa250843..0612766851 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -151,17 +151,20 @@ void PlayerMinus::Load( PlayerNumber pn, NoteData* pNoteData, LifeMeter* pLM, Co { case PLAY_MODE_BATTLE: case PLAY_MODE_RAVE: - for( int al=0; alm_pCurCharacters[m_PlayerNumber]; - ASSERT( ch ); - CString* asAttacks = ch->m_sAttacks[al]; - for( int att = 0; att < NUM_ATTACKS_PER_LEVEL; ++att ) + for( int al=0; alCacheNoteSkin( po.m_sNoteSkin ); + Character *ch = GAMESTATE->m_pCurCharacters[p]; + ASSERT( ch ); + CString* asAttacks = ch->m_sAttacks[al]; + for( int att = 0; att < NUM_ATTACKS_PER_LEVEL; ++att ) + { + PlayerOptions po; + po.FromString( asAttacks[att] ); + if( po.m_sNoteSkin != "" ) + m_pNoteField->CacheNoteSkin( po.m_sNoteSkin ); + } } } }