From ee3e77b222c9256f18ef9ced4511263b3ea56498 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 31 May 2003 02:11:26 +0000 Subject: [PATCH] if the text to replace with is already there, don't do anything --- stepmania/src/TitleSubstitution.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/TitleSubstitution.cpp b/stepmania/src/TitleSubstitution.cpp index 10f52e5443..7c03b3c870 100644 --- a/stepmania/src/TitleSubstitution.cpp +++ b/stepmania/src/TitleSubstitution.cpp @@ -50,17 +50,17 @@ void TitleSubst::Subst(CString &title, CString &subtitle, CString &artist, /* The song matches. Replace whichever strings aren't empty. */ if(!ttab[i]->TitleTo.empty()) { - if(ttab[i]->translit) ttitle = title; + if(ttab[i]->translit && title != ttab[i]->TitleTo) ttitle = title; title = ttab[i]->TitleTo; FontCharAliases::ReplaceMarkers( title ); } if(!ttab[i]->SubTo.empty()) { - if(ttab[i]->translit) tsubtitle = subtitle; + if(ttab[i]->translit && subtitle != ttab[i]->SubTo) tsubtitle = subtitle; subtitle = ttab[i]->SubTo; FontCharAliases::ReplaceMarkers( subtitle ); } - if(!ttab[i]->ArtistTo.empty()) + if(!ttab[i]->ArtistTo.empty() && artist != ttab[i]->ArtistTo) { if(ttab[i]->translit) tartist = artist; artist = ttab[i]->ArtistTo;