diff --git a/stepmania/src/TitleSubstitution.cpp b/stepmania/src/TitleSubstitution.cpp index 908df85eb8..e7036479cc 100644 --- a/stepmania/src/TitleSubstitution.cpp +++ b/stepmania/src/TitleSubstitution.cpp @@ -56,21 +56,21 @@ void TitleSubst::Subst( TitleFields &tf ) { if( ttab[i]->translit ) tf.TitleTranslit = tf.Title; - tf.Title = ttab[i]->Dest.Title; + tf.Title = (ttab[i]->Dest.Title != "-erase-")? ttab[i]->Dest.Title: ""; FontCharAliases::ReplaceMarkers( tf.Title ); } if( !ttab[i]->Dest.Subtitle.empty() && tf.Subtitle != ttab[i]->Dest.Subtitle ) { if( ttab[i]->translit ) tf.SubtitleTranslit = tf.Subtitle; - tf.Subtitle = ttab[i]->Dest.Subtitle; + tf.Subtitle = (ttab[i]->Dest.Subtitle != "-erase-")? ttab[i]->Dest.Subtitle: ""; FontCharAliases::ReplaceMarkers( tf.Subtitle ); } if( !ttab[i]->Dest.Artist.empty() && tf.Artist != ttab[i]->Dest.Artist ) { if( ttab[i]->translit ) tf.ArtistTranslit = tf.Artist; - tf.Artist = ttab[i]->Dest.Artist; + tf.Artist = (ttab[i]->Dest.Artist != "-erase-")? ttab[i]->Dest.Artist: ""; FontCharAliases::ReplaceMarkers( tf.Artist ); } @@ -78,17 +78,17 @@ void TitleSubst::Subst( TitleFields &tf ) * correct data. Should be used sparingly. */ if( !ttab[i]->Dest.TitleTranslit.empty() ) { - tf.TitleTranslit = ttab[i]->Dest.TitleTranslit; + tf.TitleTranslit = (ttab[i]->Dest.TitleTranslit != "-erase-")? ttab[i]->Dest.TitleTranslit: ""; FontCharAliases::ReplaceMarkers( tf.TitleTranslit ); } if( !ttab[i]->Dest.SubtitleTranslit.empty() ) { - tf.SubtitleTranslit = ttab[i]->Dest.SubtitleTranslit; + tf.SubtitleTranslit = (ttab[i]->Dest.SubtitleTranslit != "-erase-")? ttab[i]->Dest.SubtitleTranslit: ""; FontCharAliases::ReplaceMarkers( tf.SubtitleTranslit ); } if( !ttab[i]->Dest.ArtistTranslit.empty() ) { - tf.ArtistTranslit = ttab[i]->Dest.ArtistTranslit; + tf.ArtistTranslit = (ttab[i]->Dest.ArtistTranslit != "-erase-")? ttab[i]->Dest.ArtistTranslit: ""; FontCharAliases::ReplaceMarkers( tf.ArtistTranslit ); } }