replace arbitrarilyy "big" initialisers with those from <limits.h>

This commit is contained in:
Ted Percival
2005-03-25 12:37:17 +00:00
parent 151b70ab27
commit 476bc01a9d
2 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -20,6 +20,8 @@
#include "ProfileManager.h"
#include "Foreach.h"
#include <limits.h>
/* Amount to increase meter ranges to make them difficult: */
const int COURSE_DIFFICULTY_CLASS_CHANGE[NUM_DIFFICULTIES] = { -1, -1, 0, 1, 1 };
@@ -1191,7 +1193,7 @@ void Course::UpdateCourseStats( StepsType st )
if ( m_SortOrder_Ranking == 2 )
m_SortOrder_Ranking = 3;
m_SortOrder_TotalDifficulty = 999999; // large number
m_SortOrder_TotalDifficulty = INT_MAX;
return;
}