aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-06-19 09:56:30 +0200
committerorwell96 <orwell@bleipb.de>2019-06-19 09:56:30 +0200
commit24e56dbfc2b29229ed6253b84635a16db87659fb (patch)
treef098bf7e85fde9d8c9221f5bf155dfc37ef52c8c /advtrains
parentd6cfa7dbf62887ba4b408900946ade28f7ca12c3 (diff)
downloadadvtrains-24e56dbfc2b29229ed6253b84635a16db87659fb.tar.gz
advtrains-24e56dbfc2b29229ed6253b84635a16db87659fb.tar.bz2
advtrains-24e56dbfc2b29229ed6253b84635a16db87659fb.zip
Railway Time: Basic time counter and utility functions
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/init.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
index 4e5ae90..3fc0de0 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -68,6 +68,8 @@ function atdump(t, intend)
str=minetest.pos_to_string(t)
elseif t.p and t.s then -- interlocking sigd
str="S["..minetest.pos_to_string(t.p).."/"..t.s.."]"
+ elseif advtrains.lines and t.s and t.m then -- RwT
+ str=advtrains.lines.rwt.to_string(t)
else
str="{"
local intd = (intend or "") .. " "
@@ -417,7 +419,9 @@ minetest.register_globalstep(function(dtime_mt)
atlatc.mainloop_stepcode(dtime)
atlatc.interrupt.mainloop(dtime)
end
-
+ if advtrains.lines then
+ advtrains.lines.step(dtime)
+ end
--trigger a save when necessary
save_timer=save_timer-dtime