changed hardcoded numbers to enums in preparation for total merc number increase

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6042 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2013-04-30 21:31:04 +00:00
parent 82dec9404c
commit 2455c2c467
11 changed files with 35 additions and 34 deletions
+6 -6
View File
@@ -3076,14 +3076,14 @@ INT32 GetIdOfDepartedMercWithHighestStat( INT32 iStat )
for( uiLoopCounter=0; fNotDone ; uiLoopCounter++ )
{
//if we are at the end of
if( uiLoopCounter == 255 && bCurrentList == 2 )
if( uiLoopCounter == NUM_PROFILES && bCurrentList == 2 )
{
fNotDone = FALSE;
continue;
}
// check if we need to move to the next list
if( uiLoopCounter == 255 )
if( uiLoopCounter == NUM_PROFILES )
{
if( bCurrentList == 0 )
{
@@ -3249,7 +3249,7 @@ INT32 GetIdOfDepartedMercWithLowestStat( INT32 iStat )
}
*/
//if we are at the end of
if( uiLoopCounter == 255 && bCurrentList == 2 )
if( uiLoopCounter == NUM_PROFILES && bCurrentList == 2 )
{
fNotDone = FALSE;
continue;
@@ -3257,7 +3257,7 @@ INT32 GetIdOfDepartedMercWithLowestStat( INT32 iStat )
// check if we need to move to the next list
// if( *bCurrentListValue == -1 )
if( uiLoopCounter == 255 )
if( uiLoopCounter == NUM_PROFILES )
{
if( bCurrentList == 0 )
{
@@ -3786,7 +3786,7 @@ INT32 GetAvgStatOfPastTeamStat( INT32 iStat )
*/
//if we are at the end of
if( uiLoopCounter == 255 && bCurrentList == 2 )
if( uiLoopCounter == NUM_PROFILES && bCurrentList == 2 )
{
fNotDone = FALSE;
continue;
@@ -3794,7 +3794,7 @@ INT32 GetAvgStatOfPastTeamStat( INT32 iStat )
// check if we need to move to the next list
// if( *bCurrentListValue == -1 )
if( uiLoopCounter == 255 )
if( uiLoopCounter == NUM_PROFILES )
{
if( bCurrentList == 0 )
{