increase MAX_EDIT_COURSE_TITLE_LENGTH

This commit is contained in:
Chris Danford
2005-08-03 03:12:09 +00:00
parent 9910074bcc
commit 5cbc1fcd5f
2 changed files with 36 additions and 1 deletions
+32
View File
@@ -96,6 +96,38 @@ int CourseEntry::GetNumModChanges() const
return iNumModChanges;
}
// lua start
/*
#include "LuaBinding.h"
class LunaCourseEntry: public Luna<CourseEntry>
{
public:
LunaCourseEntry() { LUA->Register( Register ); }
static int GetSong( T* p, lua_State *L )
{
if( p->pSong )
p->pSong->PushSelf(L);
else
lua_pushnil(L);
return 1;
}
static void Register(lua_State *L)
{
ADD_METHOD( GetSong )
Luna<T>::Register( L );
}
};
LUA_REGISTER_CLASS( CourseEntry )
*/
// lua end
Course::Course()
{
+4 -1
View File
@@ -18,7 +18,7 @@ class Steps;
class Profile;
struct lua_State;
const int MAX_EDIT_COURSE_TITLE_LENGTH = 12;
const int MAX_EDIT_COURSE_TITLE_LENGTH = 20;
enum CourseType
{
@@ -97,6 +97,9 @@ public:
CString GetTextDescription() const;
int GetNumModChanges() const;
// Lua
void PushSelf( lua_State *L );
};
const int MAX_ENTRIES_PER_COURSE = 50;