From a059d58ed6f87287ca4ae615c41c2b657587667f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 16 Aug 2006 21:34:36 +0000 Subject: [PATCH] GetDifficulty, for same interface as Steps --- stepmania/src/Trail.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Trail.cpp b/stepmania/src/Trail.cpp index c5abd3af80..6e82180cac 100644 --- a/stepmania/src/Trail.cpp +++ b/stepmania/src/Trail.cpp @@ -193,7 +193,8 @@ class LunaTrail: public Luna public: LunaTrail() { LUA->Register( Register ); } - static int GetCourseDifficulty( T* p, lua_State *L ) { lua_pushnumber(L, p->m_CourseDifficulty ); return 1; } + 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; } // deprecated static int GetStepsType( T* p, lua_State *L ) { lua_pushnumber(L, p->m_StepsType ); return 1; } static int GetRadarValues( T* p, lua_State *L ) { @@ -233,6 +234,7 @@ public: static void Register(lua_State *L) { + ADD_METHOD( GetDifficulty ); ADD_METHOD( GetCourseDifficulty ); ADD_METHOD( GetStepsType ); ADD_METHOD( GetRadarValues );