diff --git a/stepmania/src/NoteData.cpp b/stepmania/src/NoteData.cpp index 482abc9ea0..d0d4f5f73d 100644 --- a/stepmania/src/NoteData.cpp +++ b/stepmania/src/NoteData.cpp @@ -37,7 +37,7 @@ NoteData::~NoteData() { } -int NoteData::GetNumTracks() +int NoteData::GetNumTracks() const { return m_iNumTracks; } diff --git a/stepmania/src/NoteData.h b/stepmania/src/NoteData.h index 7079e939ed..ea624faf51 100644 --- a/stepmania/src/NoteData.h +++ b/stepmania/src/NoteData.h @@ -42,7 +42,7 @@ public: ~NoteData(); void Init(); - int GetNumTracks(); + int GetNumTracks() const; void SetNumTracks( int iNewNumTracks ); /* Return the note at the given track and row. Row may be out of diff --git a/stepmania/src/NoteDataWithScoring.cpp b/stepmania/src/NoteDataWithScoring.cpp index 1beff71b5a..a0734b621a 100644 --- a/stepmania/src/NoteDataWithScoring.cpp +++ b/stepmania/src/NoteDataWithScoring.cpp @@ -30,7 +30,7 @@ void NoteDataWithScoring::Init() m_fHoldNoteLife.clear(); } -int NoteDataWithScoring::GetNumTapNotesWithScore( TapNoteScore tns, const float fStartBeat, float fEndBeat ) +int NoteDataWithScoring::GetNumTapNotesWithScore( TapNoteScore tns, const float fStartBeat, float fEndBeat ) const { int iNumSuccessfulTapNotes = 0; @@ -52,7 +52,7 @@ int NoteDataWithScoring::GetNumTapNotesWithScore( TapNoteScore tns, const float return iNumSuccessfulTapNotes; } -int NoteDataWithScoring::GetNumDoublesWithScore( TapNoteScore tns, const float fStartBeat, float fEndBeat ) +int NoteDataWithScoring::GetNumDoublesWithScore( TapNoteScore tns, const float fStartBeat, float fEndBeat ) const { int iNumSuccessfulDoubles = 0; @@ -81,7 +81,7 @@ int NoteDataWithScoring::GetNumDoublesWithScore( TapNoteScore tns, const float f return iNumSuccessfulDoubles; } -int NoteDataWithScoring::GetNumHoldNotesWithScore( HoldNoteScore hns, const float fStartBeat, float fEndBeat ) +int NoteDataWithScoring::GetNumHoldNotesWithScore( HoldNoteScore hns, const float fStartBeat, float fEndBeat ) const { int iNumSuccessfulHolds = 0; @@ -97,7 +97,7 @@ int NoteDataWithScoring::GetNumHoldNotesWithScore( HoldNoteScore hns, const floa return iNumSuccessfulHolds; } -bool NoteDataWithScoring::IsRowComplete( int index ) +bool NoteDataWithScoring::IsRowComplete( int index ) const { for( int t=0; t