use float.h and limit.h constants instead of arbitrary large numbers

This commit is contained in:
Chris Danford
2005-03-25 20:01:51 +00:00
parent 50bd3a493c
commit bb6592a4e7
12 changed files with 30 additions and 19 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ void AutoKeysounds::FinishLoading()
while(1)
{
/* Find the next row that either player has a note on. */
int iNextRow = 999999999;
int iNextRow = INT_MAX;
FOREACH_EnabledPlayer(pn)
{
int iNextRowForPlayer = iRow;
@@ -58,7 +58,7 @@ void AutoKeysounds::FinishLoading()
iNextRow = min( iNextRow, iNextRowForPlayer );
}
if( iNextRow == 999999999 )
if( iNextRow == INT_MAX )
break;
iRow = iNextRow;