From 55f231854b636de921b325d88d94b08ffa08d5cf Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 6 May 2006 01:29:24 +0000 Subject: [PATCH] select the song after it's unlocked --- stepmania/src/ScreenUnlockCelebrate.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/ScreenUnlockCelebrate.cpp b/stepmania/src/ScreenUnlockCelebrate.cpp index 12c59a29cd..79e5675063 100644 --- a/stepmania/src/ScreenUnlockCelebrate.cpp +++ b/stepmania/src/ScreenUnlockCelebrate.cpp @@ -2,6 +2,7 @@ #include "ScreenUnlockCelebrate.h" #include "UnlockManager.h" #include "LuaFunctions.h" +#include "GameState.h" REGISTER_SCREEN_CLASS( ScreenUnlockCelebrate ); @@ -17,6 +18,9 @@ void ScreenUnlockCelebrate::Init() g_iUnlockEntryIndexToCelebrate = UNLOCKMAN->GetUnlockEntryIndexToCelebrate(); UNLOCKMAN->UnlockEntryIndex( g_iUnlockEntryIndexToCelebrate ); + Song* pSong = UNLOCKMAN->m_UnlockEntries[ g_iUnlockEntryIndexToCelebrate ].m_pSong; + if( pSong ) + GAMESTATE->m_pCurSong.Set( pSong ); ScreenUnlockBrowse::Init(); }