Fixed comments

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3325 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 1b6f38ebf76141efd3d75195bcd0200497e387dd
Former-commit-id: 9a586d926d45485e13221dadf25b164fb2e43a00
This commit is contained in:
pouillot 2011-02-06 18:34:37 +00:00
parent 130e77670d
commit f8b871a8e0

View file

@ -402,7 +402,7 @@ static void* ReCareerNewClass( const char* filename, void *prevParam, void **fir
nbGroups = (int)GfParmGetCurNum( ReInfo->params, RM_SECT_CLASSES, RM_ATTR_NBGROUPS, NULL, 1 ); nbGroups = (int)GfParmGetCurNum( ReInfo->params, RM_SECT_CLASSES, RM_ATTR_NBGROUPS, NULL, 1 );
nbDrivers = (int)GfParmGetNum( ReInfo->params, RM_SECT_RACECARS, RM_ATTR_MAXNUM, NULL, 10 ) * nbGroups; nbDrivers = (int)GfParmGetNum( ReInfo->params, RM_SECT_RACECARS, RM_ATTR_MAXNUM, NULL, 10 ) * nbGroups;
if( first && nbDrivers < 10 ) if( first && nbDrivers < 10 )
nbDrivers = 10; /* The lowest class should at least have 10 drivers, because there can be 10 humans */ nbDrivers = 10; /* The lowest class should at least have 10 drivers, because there can be 10 humans. Note: This 10 limitation no longer exists */
if( nbGroups == 1 ) { if( nbGroups == 1 ) {
groupAlpha[ 0 ] = '\0'; groupAlpha[ 0 ] = '\0';
@ -458,7 +458,7 @@ static void ReCareerNewParams( const char* filename, double date )
return; return;
} }
/* Calculate the maximum number of tracks neccesairy */ /* Calculate the maximum number of needed tracks */
do { do {
snprintf( buf, 1024, "%s/%s/%s", RM_SECT_CLASSES, GfParmListGetCurEltName(ReInfo->params, RM_SECT_CLASSES), RM_SECT_TRACKS ); snprintf( buf, 1024, "%s/%s/%s", RM_SECT_CLASSES, GfParmListGetCurEltName(ReInfo->params, RM_SECT_CLASSES), RM_SECT_TRACKS );
if( totalTracks < 0 || totalTracks < (int)GfParmGetNum(ReInfo->params, buf, RM_ATTR_MAXNUM, NULL, 1) ) if( totalTracks < 0 || totalTracks < (int)GfParmGetNum(ReInfo->params, buf, RM_ATTR_MAXNUM, NULL, 1) )