give GetCustomDifficulty a valid CourseType to silence an error

This commit is contained in:
AJ Kelly
2009-12-12 17:50:01 +00:00
parent db0ddf9771
commit a1ce925ae1
@@ -6,17 +6,14 @@ t[#t+1] = Def.ActorFrame {
local NumColumns = THEME:GetMetric(Var "LoadingScreen", "NumColumns");
for i=1,NumColumns do
t[#t+1] = LoadActor("difficulty pill") .. {
InitCommand=cmd(x,SCREEN_CENTER_X-60 + 80 * (i-1);y,SCREEN_CENTER_Y-154;);
};
local st = THEME:GetMetric(Var "LoadingScreen","ColumnStepsType" .. i);
local dc = THEME:GetMetric(Var "LoadingScreen","ColumnDifficulty" .. i);
local ct = nil;
local ct = 'CourseType_Nonstop';
local s = GetCustomDifficulty( st, dc, ct );
t[#t+1] = LoadFont("_venacti Bold 13px") .. {
InitCommand=cmd(uppercase,true;settext,CustomDifficultyToLocalizedString(s);diffuse,CustomDifficultyToColor(s);x,SCREEN_CENTER_X-60 + 80 * (i-1);y,SCREEN_CENTER_Y-158;shadowlength,0;);