aboutsummaryrefslogtreecommitdiff
path: root/advtrains_line_automation/railwaytime.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-11-06 22:06:46 +0100
committerorwell96 <orwell@bleipb.de>2019-11-06 22:06:46 +0100
commit43b4d863ec379f5b2639194b929a45fd3a18be78 (patch)
tree21193ce383ca5867e1f6abad041d49cc3e4d7e45 /advtrains_line_automation/railwaytime.lua
parent7f4f8c606d27b902717be50643e7602c6e8efc90 (diff)
downloadadvtrains-43b4d863ec379f5b2639194b929a45fd3a18be78.tar.gz
advtrains-43b4d863ec379f5b2639194b929a45fd3a18be78.tar.bz2
advtrains-43b4d863ec379f5b2639194b929a45fd3a18be78.zip
lines: fix very dumb typo breaking the "add" and "diff" function
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