From b45d0ddff36ea6178df847bfe02d47f4fe516244 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 23 Feb 2005 20:39:27 +0000 Subject: [PATCH] broadcast on steps change --- stepmania/src/GameState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 2967f79480..3c8e6397bd 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1825,7 +1825,6 @@ public: if( lua_isnil(L,1) ) { p->m_pCurSong = NULL; } else { Song *pS = Luna::check(L,1); p->m_pCurSong = pS; } MESSAGEMAN->Broadcast( "CurrentSongChanged" ); - return 0; } static int GetCurrentSteps( T* p, lua_State *L ) @@ -1841,6 +1840,7 @@ public: PlayerNumber pn = (PlayerNumber)IArg(1); if( lua_isnil(L,2) ) { p->m_pCurSteps[pn] = NULL; } else { Steps *pS = Luna::check(L,2); p->m_pCurSteps[pn] = pS; } + MESSAGEMAN->Broadcast( ssprintf("CurrentStepsP%dChanged",pn+1) ); return 0; } static int GetCurrentCourse( T* p, lua_State *L ) { if(p->m_pCurCourse) p->m_pCurCourse->PushSelf(L); else lua_pushnil(L); return 1; }