From 3ab82e21372d250c3bd8ce07446c08a042b212f3 Mon Sep 17 00:00:00 2001 From: wobster Date: Wed, 30 Jan 2008 13:04:08 +0000 Subject: [PATCH] Modified TTA to be a X:XX countdown to avoid having to pluralise minutes/seconds --- TomTom_CrazyArrow.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/TomTom_CrazyArrow.lua b/TomTom_CrazyArrow.lua index 0fe78cd..37f5569 100644 --- a/TomTom_CrazyArrow.lua +++ b/TomTom_CrazyArrow.lua @@ -153,11 +153,7 @@ local function OnUpdate(self, elapsed) if delta > 0 then local eta = dist/(delta/time) - if eta > 60 then - tta:SetText(sformat("%d minutes and %d seconds", eta / 60, eta % 60)) - else - tta:SetText(sformat("%d seconds", eta)) - end + tta:SetText(sformat("%d:%02d", eta / 60, eta % 60)) else tta:SetText("***") end -- 1.7.9.5