diff options
author | orwell <orwell@bleipb.de> | 2024-12-01 23:51:41 +0100 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2024-12-01 23:51:41 +0100 |
commit | c081129fe040d2dd62d36777ec5eeae315fd0928 (patch) | |
tree | 5f2ea14aec4ab5d3829027ac2b824349eed9b14f /advtrains_interlocking/database.lua | |
parent | 2bfc24ef27ea4098a93cc025b513afe1b8c4ee1f (diff) | |
download | advtrains-c081129fe040d2dd62d36777ec5eeae315fd0928.tar.gz advtrains-c081129fe040d2dd62d36777ec5eeae315fd0928.tar.bz2 advtrains-c081129fe040d2dd62d36777ec5eeae315fd0928.zip |
Misc Fixes found during play
Diffstat (limited to 'advtrains_interlocking/database.lua')
-rw-r--r-- | advtrains_interlocking/database.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/advtrains_interlocking/database.lua b/advtrains_interlocking/database.lua index 75247de..c05e69a 100644 --- a/advtrains_interlocking/database.lua +++ b/advtrains_interlocking/database.lua @@ -701,7 +701,7 @@ local function recursively_find_routes(s_pos, s_connid, locks_found, result_tabl local pos, connid, bconnid = ti:next_branch() pos, connid, bconnid = ti:next_track()-- step once to get ahead of previous turnout local last_pos - repeat + while pos do -- this stops the loop when either the track end is reached or the limit is hit local node = advtrains.ndb.get_node_or_nil(pos) --atdebug("Walk ",pos, "nodename", node.name, "entering at conn",bconnid) local ndef = minetest.registered_nodes[node.name] @@ -739,7 +739,7 @@ local function recursively_find_routes(s_pos, s_connid, locks_found, result_tabl -- Go forward last_pos = pos pos, connid, bconnid = ti:next_track() - until not pos -- this stops the loop when either the track end is reached or the limit is hit + end --atdebug("recursively_find_routes: Reached track end or limit at", last_pos, ". This path is not saved, returning") end @@ -832,7 +832,7 @@ function ildb.remove_tcb_at(pos, pname, skip_tsrepair) advtrains.interlocking.remove_tcb_marker(pos) -- If needed, merge the track sections here if not skip_tsrepair then - ildb.check_and_repair_ts_at_pos(pos, pname) + ildb.check_and_repair_ts_at_pos(pos, nil, pname) end return true end |