From 0a27aad73913007dd4374c6723c7ba4da4f4b2bc Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 31 Mar 2008 14:34:37 +0000 Subject: [PATCH] allow multiple translation.xml entries to match a single song --- stepmania/src/TitleSubstitution.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/TitleSubstitution.cpp b/stepmania/src/TitleSubstitution.cpp index 3abcdbd7b9..5f3f698770 100644 --- a/stepmania/src/TitleSubstitution.cpp +++ b/stepmania/src/TitleSubstitution.cpp @@ -79,7 +79,7 @@ void TitleSubst::Subst( TitleFields &tf ) TitleTrans* tt = *iter; TitleFields to; - if(!tt->Matches(tf,to)) + if( !tt->Matches(tf,to) ) continue; /* The song matches. Replace whichever strings aren't empty. */ @@ -123,7 +123,8 @@ void TitleSubst::Subst( TitleFields &tf ) FontCharAliases::ReplaceMarkers( tf.ArtistTranslit ); } - break; // Matched once. Done. + // Matched once. Keep processing to allow multiple matching entries. For example, allow + // one entry to translate a title, and another entry to translate the artist. } }