From 1c2a9bfae6f80b3f9349478383f9bdab2eab1814 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 30 Aug 2005 02:52:38 +0000 Subject: [PATCH] add IsDisqualified --- stepmania/src/GameState.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index fb00625422..dc88409715 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -1996,6 +1996,11 @@ public: PlayerNumber pn = (PlayerNumber)IArg(1); lua_pushboolean(L, p->GetStageResult(pn)==RESULT_WIN); return 1; } + static int IsDisqualified( T* p, lua_State *L ) + { + PlayerNumber pn = (PlayerNumber)IArg(1); + lua_pushboolean(L, p->IsDisqualified(pn)); return 1; + } static int GetCurrentGame( T* p, lua_State *L ) { const_cast(p->GetCurrentGame())->PushSelf( L ); return 1; } static int GetEditCourseEntryIndex( T* p, lua_State *L ) { lua_pushnumber(L, p->m_iEditCourseEntryIndex ); return 1; } static int GetEditLocalProfileID( T* p, lua_State *L ) { lua_pushstring(L, p->m_sEditLocalProfileID.Get() ); return 1; } @@ -2061,6 +2066,7 @@ public: ADD_METHOD( GetSongOptionsString ) ADD_METHOD( IsSyncDataChanged ) ADD_METHOD( IsWinner ) + ADD_METHOD( IsDisqualified ) ADD_METHOD( GetCurrentGame ) ADD_METHOD( GetEditCourseEntryIndex ) ADD_METHOD( GetEditLocalProfileID )