diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index dd1572b53b..5ba5a0e39d 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -10,7 +10,7 @@ StepMania 5.0 Preview 3 | 20110820 2011/08/20 ---------- -* [CustomSpeedMods] Updated to v2.2; implements a m-Mod fix. [hanubeki] +* [PlayerOptions] Add GetMMod() Lua binding. [AJ] 2011/08/19 ---------- diff --git a/src/PlayerOptions.cpp b/src/PlayerOptions.cpp index a6f279a107..68239afa33 100644 --- a/src/PlayerOptions.cpp +++ b/src/PlayerOptions.cpp @@ -913,6 +913,7 @@ public: lua_pushnil(L); return 1; } + static int GetMMod( T *p, lua_State *L ) { lua_pushnumber(L, p->m_fMaxScrollBPM); return 1; } // Accel DEFINE_METHOD( GetBoost, m_fAccels[PlayerOptions::ACCEL_BOOST] ) @@ -1042,6 +1043,7 @@ public: ADD_METHOD( GetNoAttacks ); ADD_METHOD( GetCMod ); ADD_METHOD( GetXMod ); + ADD_METHOD( GetMMod ); // Accel ADD_METHOD( GetBoost );