aboutsummaryrefslogtreecommitdiff
path: root/advtrains_line_automation/railwaytime.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_line_automation/railwaytime.lua')
-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 bd16285..3a044b6 100644
--- a/advtrains_line_automation/railwaytime.lua
+++ b/advtrains_line_automation/railwaytime.lua
@@ -189,14 +189,14 @@ end
function rwt.add(t1, t2)
local t1s = rwt.to_secs(t1)
- local t2s = rwt.to_secs(t1)
+ local t2s = rwt.to_secs(t2)
return rwt.to_table(t1s + t2s)
end
-- How many seconds FROM t1 TO t2
function rwt.diff(t1, t2)
local t1s = rwt.to_secs(t1)
- local t2s = rwt.to_secs(t1)
+ local t2s = rwt.to_secs(t2)
return t2s - t1s
end