diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index f89957e59d..43df444705 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1938,6 +1938,7 @@ public: static int GetPreferredDifficulty( T* p, lua_State *L ) { lua_pushnumber(L, p->m_PreferredDifficulty[IArg(1)] ); return 1; } static int AnyPlayerHasRankingFeats( T* p, lua_State *L ) { lua_pushboolean(L, p->AnyPlayerHasRankingFeats() ); return 1; } static int GetPlayMode( T* p, lua_State *L ) { lua_pushnumber(L, p->m_PlayMode ); return 1; } + static int IsGoalComplete( T* p, lua_State *L ) { lua_pushboolean(L, p->IsGoalComplete((PlayerNumber)IArg(1)) ); return 1; } static void Register(lua_State *L) { @@ -1960,6 +1961,7 @@ public: ADD_METHOD( GetPreferredDifficulty ) ADD_METHOD( AnyPlayerHasRankingFeats ) ADD_METHOD( GetPlayMode ) + ADD_METHOD( IsGoalComplete ) Luna::Register( L ); // Add global singleton if constructed already. If it's not constructed yet,