From 25db482ec8d1e84d6459c91379646b7a6c1ac360 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 15 May 2007 17:42:31 +0000 Subject: [PATCH] better params: don't hide song from Lua when the entry is hidden, expose steps --- stepmania/src/CourseContentsList.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/CourseContentsList.cpp b/stepmania/src/CourseContentsList.cpp index 61c0888e99..fe6194daf1 100644 --- a/stepmania/src/CourseContentsList.cpp +++ b/stepmania/src/CourseContentsList.cpp @@ -132,12 +132,13 @@ void CourseContentsList::SetItemFromGameState( Actor *pActor, int iCourseEntryIn Message msg("SetSong"); msg.SetParam( "PlayerNumber", pn ); + msg.SetParam( "Song", te->pSong ); + msg.SetParam( "Steps", te->pSteps ); msg.SetParam( "Difficulty", dc ); msg.SetParam( "Meter", s ); msg.SetParam( "Number", iCourseEntryIndex+1 ); msg.SetParam( "Modifiers", te->Modifiers ); - if( !te->bSecret ) - msg.SetParam( "Song", te->pSong ); + msg.SetParam( "Secret", te->bSecret ); pActor->HandleMessage( msg ); } }