mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user