diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 0847245455..c32e368823 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -10,8 +10,9 @@ StepMania 5.0 $next | 201110?? 2011/09/30 ---------- -* [GameState] Added CurrentOptionsDisqualifyPlayer(player) Lua binding. [AJ] -* [GameState] Added ApplyPreferredModifiers(player,string) Lua binding. [AJ] +* [GameState] Added CurrentOptionsDisqualifyPlayer(player), + ApplyPreferredModifiers(player,string) and ApplyStageModifiers(player,string) + Lua bindings. [AJ] 2011/09/29 ---------- diff --git a/src/GameState.cpp b/src/GameState.cpp index 221143aaec..2e48a84286 100644 --- a/src/GameState.cpp +++ b/src/GameState.cpp @@ -2308,6 +2308,11 @@ public: lua_pushstring(L, so.GetString()); return 1; } + static int ApplyStageModifiers( T* p, lua_State *L ) + { + p->ApplyStageModifiers( Enum::Check(L, 1), SArg(2) ); + return 0; + } static int ApplyPreferredModifiers( T* p, lua_State *L ) { p->ApplyPreferredModifiers( Enum::Check(L, 1), SArg(2) ); @@ -2516,6 +2521,7 @@ public: ADD_METHOD( GetSongOptions ); ADD_METHOD( GetDefaultSongOptions ); ADD_METHOD( ApplyPreferredModifiers ); + ADD_METHOD( ApplyStageModifiers ); ADD_METHOD( ClearStageModifiersIllegalForCourse ); ADD_METHOD( SetSongOptions ); ADD_METHOD( IsWinner );