aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/route_prog.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2024-07-20 18:02:33 +0200
committerorwell <orwell@bleipb.de>2024-07-20 18:02:33 +0200
commitbaa50c03920fd0a563fce09929f3d56c3374e8bd (patch)
treeb7a8cf7b94952a7db823cab1de6860e57fd53c25 /advtrains_interlocking/route_prog.lua
parentc145e5db7473a0baab6438d7c2ed9616948d8387 (diff)
downloadadvtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.tar.gz
advtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.tar.bz2
advtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.zip
ARS supports triggering distant signal, other bugfixes
Diffstat (limited to 'advtrains_interlocking/route_prog.lua')
-rw-r--r--advtrains_interlocking/route_prog.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_interlocking/route_prog.lua b/advtrains_interlocking/route_prog.lua
index 34807cd..37f751a 100644
--- a/advtrains_interlocking/route_prog.lua
+++ b/advtrains_interlocking/route_prog.lua
@@ -209,7 +209,7 @@ function advtrains.interlocking.visualize_route(origin, route, context, tmp_lcks
end
-- display locks set by player
for pts, state in pairs(tmp_lcks) do
- local pos = minetest.string_to_pos(pts)
+ local pos = advtrains.decode_pos(pts)
routesprite(context, pos, "fixp"..pts, "at_il_route_lock_edit.png", "Fixed in state '"..state.."' by route "..route.name.." (punch to unfix)",
function() clear_lock(tmp_lcks, pname, pts) end)
end
@@ -536,7 +536,7 @@ minetest.register_on_punchnode(function(pos, node, player, pointed_thing)
return
end
if advtrains.is_passive(pos) then
- local pts = advtrains.roundfloorpts(pos)
+ local pts = advtrains.encode_pos(pos)
if rp.tmp_lcks[pts] then
clear_lock(rp.tmp_lcks, pname, pts)
else