From dbaec61958e2ed7564079145515a5f6d03cb3f64 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 1 Aug 2005 05:11:30 +0000 Subject: [PATCH] lua method rename: GetDifficulty -> GetCourseDifficulty --- stepmania/src/Trail.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Trail.cpp b/stepmania/src/Trail.cpp index 8b7d2652db..75892325c5 100644 --- a/stepmania/src/Trail.cpp +++ b/stepmania/src/Trail.cpp @@ -191,11 +191,14 @@ class LunaTrail: public Luna public: LunaTrail() { LUA->Register( Register ); } - static int GetDifficulty( T* p, lua_State *L ) { lua_pushnumber(L, p->m_CourseDifficulty ); return 1; } + static int GetCourseDifficulty( T* p, lua_State *L ) { lua_pushnumber(L, p->m_CourseDifficulty ); return 1; } + static int GetStepsType( T* p, lua_State *L ) { lua_pushnumber(L, p->m_StepsType ); return 1; } static void Register(lua_State *L) { - ADD_METHOD( GetDifficulty ) + ADD_METHOD( GetCourseDifficulty ) + ADD_METHOD( GetStepsType ) + Luna::Register( L ); } };