re-clamp the description when changing the difficulty

This commit is contained in:
Chris Danford
2005-04-13 08:45:00 +00:00
parent de2daa5410
commit 04715f4dd3
3 changed files with 11 additions and 12 deletions
+3 -8
View File
@@ -322,10 +322,11 @@ void Steps::SetFile( CString fn )
m_sFilename = fn;
}
void Steps::SetDescription(CString desc)
void Steps::SetDifficultyAndDescription( Difficulty dc, CString sDescription )
{
DeAutogen();
m_sDescription = desc;
m_Difficulty = dc;
m_sDescription = sDescription;
if( GetDifficulty() == DIFFICULTY_EDIT )
MakeValidEditDescription( m_sDescription );
}
@@ -340,12 +341,6 @@ bool Steps::MakeValidEditDescription( CString &sPreferredDescription )
return false;
}
void Steps::SetDifficulty(Difficulty d)
{
DeAutogen();
m_Difficulty = d;
}
void Steps::SetMeter(int meter)
{
DeAutogen();