aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advtrains_line_automation/railwaytime.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_line_automation/railwaytime.lua b/advtrains_line_automation/railwaytime.lua
index b6aa3de..1c6e31f 100644
--- a/advtrains_line_automation/railwaytime.lua
+++ b/advtrains_line_automation/railwaytime.lua
@@ -136,9 +136,9 @@ function rwt.adjust(rwtime, reftime, thresh)
return cp
end
-function rwt.to_string(rwtime, places)
+function rwt.to_string(rwtime, no_cycle, places)
local pl = places or 2
- if rwtime.c~=0 or pl>=3 then
+ if (rwtime.c~=0 or pl>=3) and not no_cycle then
return string.format("%d;%02d;%02d", rwtime.c, rwtime.m, rwtime.s)
elseif rwtime.m~=0 or pl>=2 then
return string.format("%02d;%02d", rwtime.m, rwtime.s)