diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 69f151cf5f..112ad2a84e 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -9,6 +9,14 @@ ________________________________________________________________________________ StepMania 5.0 alpha 2 | 201203?? -------------------------------------------------------------------------------- +2012/03/28 +---------- +* [ScoreKeeperRave] Actually handle hold scores in HandleHoldScore(). + Players should please provide feedback on how this affects gameplay, as this + is a temporary feature. [AJ] +* [GameConstantsAndTypes] Made StageResult Lua-aware. [AJ] +* [GameState] Added GetStageResult(pn) Lua binding. [AJ] + 2012/03/27 ---------- * [ScreenEditMenu] Don't hardcode stopping the music on pressing the back button. diff --git a/src/GameState.cpp b/src/GameState.cpp index 566ae1f0b8..215bf267ff 100644 --- a/src/GameState.cpp +++ b/src/GameState.cpp @@ -2339,6 +2339,12 @@ public: p->m_SongOptions.Assign( m, so ); return 0; } + static int GetStageResult( T* p, lua_State *L ) + { + PlayerNumber pn = Enum::Check(L, 1); + LuaHelpers::Push( L, p->GetStageResult(pn) ); + return 1; + } static int IsWinner( T* p, lua_State *L ) { PlayerNumber pn = Enum::Check(L, 1); @@ -2552,6 +2558,7 @@ public: ADD_METHOD( ApplyStageModifiers ); ADD_METHOD( ClearStageModifiersIllegalForCourse ); ADD_METHOD( SetSongOptions ); + ADD_METHOD( GetStageResult ); ADD_METHOD( IsWinner ); ADD_METHOD( IsDraw ); ADD_METHOD( GetCurrentGame );