[PlayerOptions] Add GetMMod() Lua binding.

This commit is contained in:
AJ Kelly
2011-08-20 01:45:06 -05:00
parent e0bd63a2a8
commit 7fba9a3917
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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
----------
+2
View File
@@ -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 );