From d0502bfddb74804dd2d4a2e286bb13958f35b543 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 21 Jul 2003 23:16:06 +0000 Subject: [PATCH] rename --- stepmania/src/BPMDisplay.cpp | 2 +- stepmania/src/Course.cpp | 14 +++++++------- stepmania/src/Course.h | 6 +++--- stepmania/src/CourseContentsList.cpp | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/stepmania/src/BPMDisplay.cpp b/stepmania/src/BPMDisplay.cpp index 582a62bca5..27e37d74a0 100644 --- a/stepmania/src/BPMDisplay.cpp +++ b/stepmania/src/BPMDisplay.cpp @@ -193,7 +193,7 @@ void BPMDisplay::SetBPM( const Course* pCourse ) continue; } - Song *pSong = ci[i].Song; + Song *pSong = ci[i].pSong; ASSERT( pSong ); switch( pSong->m_DisplayBPMType ) { diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index cccf980fb6..64775c6589 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -140,7 +140,7 @@ int Course::GetMeter() const } } else - fTotalMeter += ci[c].Notes->GetMeter(); + fTotalMeter += ci[c].pNotes->GetMeter(); } return (int)roundf( fTotalMeter / ci.size() ); } @@ -448,7 +448,7 @@ bool Course::HasDifficult( NotesType nt ) const continue; } - if( Normal[i].Song != Hard[i].Song || Normal[i].Notes != Hard[i].Notes ) + if( Normal[i].pSong != Hard[i].pSong || Normal[i].pNotes != Hard[i].pNotes ) return true; } return false; @@ -474,8 +474,8 @@ bool Course::GetFirstStageInfo( if( ci.empty() ) return false; - pSongOut = ci[0].Song; - pNotesOut = ci[0].Notes; + pSongOut = ci[0].pSong; + pNotesOut = ci[0].pNotes; sModifiersOut = ci[0].Modifiers; return true; } @@ -607,8 +607,8 @@ void Course::GetCourseInfo( NotesType nt, vector &ci ) const } Info cinfo; - cinfo.Song = pSong; - cinfo.Notes = pNotes; + cinfo.pSong = pSong; + cinfo.pNotes = pNotes; cinfo.Modifiers = e.modifiers; cinfo.Random = ( e.type == Entry::random || e.type == Entry::random_within_group ); cinfo.CourseIndex = i; @@ -667,7 +667,7 @@ bool Course::GetTotalSeconds( float& fSecondsOut ) const { if( ci[i].Random ) return false; - fSecondsOut += ci[i].Song->m_fMusicLengthSeconds; + fSecondsOut += ci[i].pSong->m_fMusicLengthSeconds; } return true; } diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index c868153578..4fb1d19a0d 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -62,9 +62,9 @@ public: struct Info { - Info(): Song(NULL), Notes(NULL), Random(false) { } - Song* Song; - Notes* Notes; + Info(): pSong(NULL), pNotes(NULL), Random(false) { } + Song* pSong; + Notes* pNotes; CString Modifiers; bool Random; /* Corresponding entry in m_entries: */ diff --git a/stepmania/src/CourseContentsList.cpp b/stepmania/src/CourseContentsList.cpp index a3aa6651c5..3ab6bfc79e 100644 --- a/stepmania/src/CourseContentsList.cpp +++ b/stepmania/src/CourseContentsList.cpp @@ -74,7 +74,7 @@ void CourseContentsList::SetFromCourse( Course* pCourse ) } else { - display.LoadFromSongAndNotes( m_iNumContents+1, ci[i].Song, ci[i].Notes, ci[i].Modifiers ); + display.LoadFromSongAndNotes( m_iNumContents+1, ci[i].pSong, ci[i].pNotes, ci[i].Modifiers ); } m_iNumContents ++;