From a2975d3e4f2b2ff449a5875ab9fb4fa23c73fc60 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 2 Sep 2006 06:12:14 +0000 Subject: [PATCH] Write award#. --- stepmania/src/CourseWriterCRS.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/stepmania/src/CourseWriterCRS.cpp b/stepmania/src/CourseWriterCRS.cpp index 7a4f1ae9bc..fd9df59a2d 100644 --- a/stepmania/src/CourseWriterCRS.cpp +++ b/stepmania/src/CourseWriterCRS.cpp @@ -113,7 +113,7 @@ bool CourseWriterCRS::Write( const Course &course, RageFileBasic &f, bool bSavin { f.Write( ssprintf( "#SONG:%s/*", entry.songCriteria.m_sGroupName.c_str() ) ); } - else + else { f.Write( "#SONG:*" ); } @@ -140,6 +140,14 @@ bool CourseWriterCRS::Write( const Course &course, RageFileBasic &f, bool bSavin sModifiers += ","; sModifiers += "nodifficult"; } + + if( entry.iGainLives > -1 ) + { + if( !sModifiers.empty() ) + sModifiers += ','; + sModifiers += ssprintf( "award%d", entry.iGainLives ); + } + f.Write( sModifiers ); f.PutLine( ";" );