From 7fba9a391796e73ecb0aa803f7715042b89beea9 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 20 Aug 2011 01:45:06 -0500 Subject: [PATCH] [PlayerOptions] Add GetMMod() Lua binding. --- Docs/Changelog_sm5.txt | 2 +- src/PlayerOptions.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 );