diff --git a/stepmania/src/NoteField.cpp b/stepmania/src/NoteField.cpp index 2c2d6b42ad..50a82432ca 100644 --- a/stepmania/src/NoteField.cpp +++ b/stepmania/src/NoteField.cpp @@ -79,10 +79,10 @@ 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 skins; - GAMESTATE->GetAllUsedNoteSkins( skins ); - for( unsigned i=0; i < skins.size(); ++i ) - CacheNoteSkin( skins[i] ); + vector asSkins; + GAMESTATE->GetAllUsedNoteSkins( asSkins ); + for( unsigned i=0; i < asSkins.size(); ++i ) + CacheNoteSkin( asSkins[i] ); RString sNoteSkin = m_pPlayerState->m_PlayerOptions.m_sNoteSkin; CacheNoteSkin( sNoteSkin ); } diff --git a/stepmania/src/NoteField.h b/stepmania/src/NoteField.h index be7a130315..94c99ae9c5 100644 --- a/stepmania/src/NoteField.h +++ b/stepmania/src/NoteField.h @@ -28,8 +28,6 @@ public: int iEndDrawingPixel ); virtual void Unload(); - int m_iBeginMarker, m_iEndMarker; // only used with MODE_EDIT - void FadeToFail(); void CacheNoteSkin( const RString &sNoteSkin ); @@ -40,6 +38,8 @@ public: const PlayerState *GetPlayerState() const { return m_pPlayerState; } + int m_iBeginMarker, m_iEndMarker; // only used with MODE_EDIT + protected: void CacheAllUsedNoteSkins(); @@ -56,32 +56,32 @@ protected: const NoteData *m_pNoteData; - float m_fPercentFadeToFail; // -1 of not fading to fail + float m_fPercentFadeToFail; // -1 if not fading to fail - const PlayerState* m_pPlayerState; + const PlayerState* m_pPlayerState; int m_iStartDrawingPixel; // this should be a negative number int m_iEndDrawingPixel; // this should be a positive number - float m_fYReverseOffsetPixels; + float m_fYReverseOffsetPixels; // color arrows struct NoteDisplayCols { NoteDisplay *display; ReceptorArrowRow m_ReceptorArrowRow; - GhostArrowRow m_GhostArrowRow; + GhostArrowRow m_GhostArrowRow; NoteDisplayCols( int iNumCols ) { display = new NoteDisplay[iNumCols]; } ~NoteDisplayCols() { delete [] display; } }; /* All loaded note displays, mapped by their name. */ map m_NoteDisplays; - NoteDisplayCols *m_pCurDisplay; + NoteDisplayCols *m_pCurDisplay; // used in MODE_EDIT - Sprite m_sprBars; // 4 frames: Measure, 4th, 8th, 16th - BitmapText m_textMeasureNumber; - Quad m_rectMarkerBar; - Quad m_rectAreaHighlight; + Sprite m_sprBars; // 4 frames: Measure, 4th, 8th, 16th + BitmapText m_textMeasureNumber; + Quad m_rectMarkerBar; + Quad m_rectAreaHighlight; }; #endif