up the maximum size of an edit course from 30KB to 32KB.

allow the #BACKGROUND tag to be read from .crs files.
This commit is contained in:
AJ Kelly
2010-05-22 10:21:24 -05:00
parent 6eb23862fa
commit 4ec98bc30c
+5 -1
View File
@@ -16,7 +16,7 @@
#include "CourseUtil.h"
#include <float.h>
const int MAX_EDIT_COURSE_SIZE_BYTES = 30*1024; // 30KB
const int MAX_EDIT_COURSE_SIZE_BYTES = 32*1024; // 32KB
const char *g_CRSDifficultyNames[] =
{
@@ -70,6 +70,10 @@ bool CourseLoaderCRS::LoadFromMsd( const RString &sPath, const MsdFile &msd, Cou
{
out.m_sBannerPath = sParams[1];
}
else if( 0 == stricmp(sValueName, "BACKGROUND") )
{
out.m_sBackgroundPath = sParams[1];
}
else if( 0 == stricmp(sValueName, "LIVES") )
{
out.m_iLives = max( atoi(sParams[1]), 0 );