diff options
author | orwell <orwell@bleipb.de> | 2023-10-15 15:48:59 +0200 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2023-10-15 15:48:59 +0200 |
commit | 2067ab0a90550b2fc513e032d4c4e54dd11a2290 (patch) | |
tree | 55509b5ef1cfc23e82694f4ccef7c388ae49cb2a /advtrains/nodedb.lua | |
parent | ad82b9cd4e12e16a176a2af08d480fa939076515 (diff) | |
download | advtrains-2067ab0a90550b2fc513e032d4c4e54dd11a2290.tar.gz advtrains-2067ab0a90550b2fc513e032d4c4e54dd11a2290.tar.bz2 advtrains-2067ab0a90550b2fc513e032d4c4e54dd11a2290.zip |
Use conn_map in the path calculation
Diffstat (limited to 'advtrains/nodedb.lua')
-rw-r--r-- | advtrains/nodedb.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua index 39106b2..d903be7 100644 --- a/advtrains/nodedb.lua +++ b/advtrains/nodedb.lua @@ -278,9 +278,9 @@ function advtrains.get_rail_info_at(pos) if(not advtrains.is_track(nodename)) then return false end - local conns, railheight = advtrains.get_track_connections(node.name, node.param2) + local conns, railheight, connmap = advtrains.get_track_connections(node.name, node.param2) - return true, conns, railheight + return true, conns, railheight, connmap end local IGNORE_WORLD = advtrains.IGNORE_WORLD |