aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/signal_api.lua
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2022-07-03 12:45:27 +0200
committerY. Wang <yw05@forksworld.de>2023-03-23 20:06:02 +0100
commit875968f078ef89b13afae6d02a2dabe5ea7897cb (patch)
tree5b3c43ace046b595d09291e1af0e0a0136d7e13a /advtrains_interlocking/signal_api.lua
parentbd20da95ec5e1c113a57b7ac2c75d08b87cbf793 (diff)
downloadadvtrains-875968f078ef89b13afae6d02a2dabe5ea7897cb.tar.gz
advtrains-875968f078ef89b13afae6d02a2dabe5ea7897cb.tar.bz2
advtrains-875968f078ef89b13afae6d02a2dabe5ea7897cb.zip
Unassign distant signals when canceling route
Diffstat (limited to 'advtrains_interlocking/signal_api.lua')
-rw-r--r--advtrains_interlocking/signal_api.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/advtrains_interlocking/signal_api.lua b/advtrains_interlocking/signal_api.lua
index 1fd4e34..eec70f9 100644
--- a/advtrains_interlocking/signal_api.lua
+++ b/advtrains_interlocking/signal_api.lua
@@ -176,6 +176,11 @@ advtrains.interlocking.GENERIC_FREE = {
shunt = false,
dst = false,
}
+advtrains.interlocking.FULL_FREE = {
+ main = -1,
+ shunt = false,
+ proceed_as_main = true,
+}
local function convert_aspect_if_necessary(asp)
if type(asp.main) == "table" then
@@ -212,7 +217,7 @@ end
function advtrains.interlocking.signal_after_dig(pos)
-- clear influence point
- advtrains.interlocking.db.clear_ip_by_signalpos(pos)
+
advtrains.interlocking.signal_clear_aspect(pos)
advtrains.distant.unassign_all(pos, true)
end