[sm130labels] Consistency: no empty labels.

This commit is contained in:
Jason Felds
2011-04-05 01:21:54 -04:00
parent 25b5e24b93
commit 9a3a524a11
+6 -3
View File
@@ -2669,9 +2669,12 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM )
else if ( SM == SM_BackFromLabelChange )
{
RString sLabel = ScreenTextEntry::s_sLastAnswer;
sLabel.Replace("=", "_");
sLabel.Replace(",", "_");
m_pSong->m_Timing.SetLabelAtBeat( GAMESTATE->m_fSongBeat, sLabel );
if ( sLabel.length() > 0 )
{
sLabel.Replace("=", "_");
sLabel.Replace(",", "_");
m_pSong->m_Timing.SetLabelAtBeat( GAMESTATE->m_fSongBeat, sLabel );
}
SetDirty( true );
}
else if ( SM == SM_BackFromWarpChange )