working on new course edit screens
This commit is contained in:
@@ -73,10 +73,7 @@ CString CourseEntry::GetTextDescription() const
|
||||
vsEntryDescription.push_back( "Sort: %d" + SongSortToThemedString(songSort) );
|
||||
if( songSort != SongSort_Randomize && iChooseIndex != 0 )
|
||||
vsEntryDescription.push_back( "Choose " + FormatNumberAndSuffix(iChooseIndex) + " match" );
|
||||
int iNumModChanges = 0;
|
||||
if( !sModifiers.empty() )
|
||||
iNumModChanges++;
|
||||
iNumModChanges += attacks.size();
|
||||
int iNumModChanges = GetNumModChanges();
|
||||
if( iNumModChanges != 0 )
|
||||
vsEntryDescription.push_back( ssprintf("%d mod changes", iNumModChanges) );
|
||||
if( fGainSeconds != 0 )
|
||||
@@ -86,6 +83,15 @@ CString CourseEntry::GetTextDescription() const
|
||||
return s;
|
||||
}
|
||||
|
||||
int CourseEntry::GetNumModChanges() const
|
||||
{
|
||||
int iNumModChanges = 0;
|
||||
if( !sModifiers.empty() )
|
||||
iNumModChanges++;
|
||||
iNumModChanges += attacks.size();
|
||||
return iNumModChanges;
|
||||
}
|
||||
|
||||
|
||||
Course::Course()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user