From 879fa6c37cecac65bea624a0c331ceec48ff36d5 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 7 Aug 2003 06:38:18 +0000 Subject: [PATCH] NUM_NOTES_TYPES => NUM_STEPS_TYPES --- stepmania/src/Course.cpp | 4 ++-- stepmania/src/Course.h | 4 ++-- stepmania/src/GameConstantsAndTypes.h | 2 +- stepmania/src/GameManager.cpp | 10 +++++----- stepmania/src/NoteDataUtil.cpp | 2 +- stepmania/src/Song.cpp | 4 ++-- stepmania/src/SongManager.cpp | 14 +++++++------- stepmania/src/SongManager.h | 2 +- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 4475ca23af..f5df6ca040 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -62,7 +62,7 @@ void Course::SetDefaultScore() // // Init high scores // - for( unsigned i=0; i& apChoi void GameManager::GetNotesTypesForGame( Game game, vector& aNotesTypeAddTo ) { - for( int nt=0; nt& aGamesOut ) int GameManager::NotesTypeToNumTracks( StepsType nt ) { - if(nt >= NUM_NOTES_TYPES) + if(nt >= NUM_STEPS_TYPES) { // invalid StepsType ASSERT(0); @@ -1668,7 +1668,7 @@ StepsType GameManager::StringToNotesType( CString sNotesType ) if( sNotesType == "para" ) sNotesType = "para-single"; - for( int i=0; i= NUM_NOTES_TYPES) + if(nt >= NUM_STEPS_TYPES) { // invalid StepsType ASSERT(0); diff --git a/stepmania/src/NoteDataUtil.cpp b/stepmania/src/NoteDataUtil.cpp index e6d166db32..315a2bb10a 100644 --- a/stepmania/src/NoteDataUtil.cpp +++ b/stepmania/src/NoteDataUtil.cpp @@ -823,7 +823,7 @@ void NoteDataUtil::ShiftRight( NoteData &in ) } - +NUM_STEPS_TYPES void NoteDataUtil::FixImpossibleRows( NoteData &in, StepsType st ) { diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index b9f67035f6..a2595b0c95 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -1001,7 +1001,7 @@ void Song::SaveToDWIFile() void Song::AddAutoGenNotes() { - for( StepsType ntMissing=(StepsType)0; ntMissing apNotes; this->GetNotes( apNotes, nt ); diff --git a/stepmania/src/SongManager.cpp b/stepmania/src/SongManager.cpp index 010cfe625e..4cb4dc8950 100644 --- a/stepmania/src/SongManager.cpp +++ b/stepmania/src/SongManager.cpp @@ -352,7 +352,7 @@ void SongManager::ReadCourseScoresFromFile( CString fn, int c ) if( pCourse == NULL ) pCourse = GetCourseFromName( szPath ); - for( int i=0; im_sPath.c_str()); - for( int i=0; im_sPath.c_str()); - for( int nt=0; ntm_MemCardScores[c][nt].iNumTimesPlayed, pCourse->m_MemCardScores[c][nt].iScore, diff --git a/stepmania/src/SongManager.h b/stepmania/src/SongManager.h index b6b5e1c028..59a5d97fb5 100644 --- a/stepmania/src/SongManager.h +++ b/stepmania/src/SongManager.h @@ -98,7 +98,7 @@ public: { int iScore; CString sName; - } m_MachineScores[NUM_NOTES_TYPES][NUM_RANKING_CATEGORIES][NUM_RANKING_LINES]; + } m_MachineScores[NUM_STEPS_TYPES][NUM_RANKING_CATEGORIES][NUM_RANKING_LINES]; void AddScores( StepsType nt, bool bPlayerEnabled[NUM_PLAYERS], RankingCategory hsc[NUM_PLAYERS], int iScore[NUM_PLAYERS], int iNewRecordIndexOut[NUM_PLAYERS] ); // set iNewRecordIndex = -1 if not a new record void UpdateBest();