From b44c4dd92d3e05df4eaf8496c9891479cf27b4fb Mon Sep 17 00:00:00 2001 From: Colby Klein Date: Thu, 1 Jan 2009 07:22:16 +0000 Subject: [PATCH] Fix percent --- .../ScreenEvaluationStage decorations/default.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/Themes/default/BGAnimations/ScreenEvaluationStage decorations/default.lua b/stepmania/Themes/default/BGAnimations/ScreenEvaluationStage decorations/default.lua index fa2240ca2e..ce2a057064 100644 --- a/stepmania/Themes/default/BGAnimations/ScreenEvaluationStage decorations/default.lua +++ b/stepmania/Themes/default/BGAnimations/ScreenEvaluationStage decorations/default.lua @@ -54,7 +54,7 @@ if ShowStandardDecoration("ItsARecord") then local hsl = PROFILEMAN:GetMachineProfile():GetHighScoreList(pSongOrCourse,pSteps); local hsName = hsl:GetHighScores()[1]:GetName(); - local hsPerc = hsl:GetHighScores()[1]:GetPercentDP(); + local hsPerc = math.floor( hsl:GetHighScores()[1]:GetPercentDP() * 10000 ) / 100; --hsl:GetHighScores()[1]:GetName GetScore GetPercentDP if index == 0 then self:GetChild("Record"):visible( true ); @@ -63,7 +63,7 @@ if ShowStandardDecoration("ItsARecord") then self:GetChild("Record"):visible( false ); self:GetChild("NoRecord"):visible( true ); if hsl then - self:GetChild("NoRecord"):settext(hsName..":\n"..hsPerc); + self:GetChild("NoRecord"):settext(hsName..":\n"..hsPerc .. "%"); else self:GetChild("NoRecord"):settext(""); end