aboutsummaryrefslogtreecommitdiff
path: root/advtrains_signals_ks/init.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-03-12 17:56:07 +0100
committerorwell96 <orwell@bleipb.de>2021-03-12 17:56:07 +0100
commitb2d7bbb2c577a2b28cdaf421daf9b143f4376c8a (patch)
tree49d7ec4e1a3c4b6cf64180978fdc6bd5a8486606 /advtrains_signals_ks/init.lua
parent2dcf60dec6304abc910dea82c6f9a5904bbf365b (diff)
downloadadvtrains-b2d7bbb2c577a2b28cdaf421daf9b143f4376c8a.tar.gz
advtrains-b2d7bbb2c577a2b28cdaf421daf9b143f4376c8a.tar.bz2
advtrains-b2d7bbb2c577a2b28cdaf421daf9b143f4376c8a.zip
Signal influence points: Make sure to clear on removal of signal, clear orphaned when digging rail
Diffstat (limited to 'advtrains_signals_ks/init.lua')
-rwxr-xr-xadvtrains_signals_ks/init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/advtrains_signals_ks/init.lua b/advtrains_signals_ks/init.lua
index aa1b1cb..3209cb1 100755
--- a/advtrains_signals_ks/init.lua
+++ b/advtrains_signals_ks/init.lua
@@ -115,6 +115,7 @@ for _, rtab in ipairs({
},
on_rightclick = advtrains.interlocking.signal_rc_handler,
can_dig = advtrains.interlocking.signal_can_dig,
+ after_dig_node = advtrains.interlocking.signal_after_dig,
})
-- rotatable by trackworker
advtrains.trackplacer.add_worked("advtrains_signals_ks:hs", typ, "_"..rot, prts.n)
@@ -160,6 +161,7 @@ for _, rtab in ipairs({
},
on_rightclick = advtrains.interlocking.signal_rc_handler,
can_dig = advtrains.interlocking.signal_can_dig,
+ after_dig_node = advtrains.interlocking.signal_after_dig,
})
-- rotatable by trackworker
advtrains.trackplacer.add_worked("advtrains_signals_ks:ra", typ, "_"..rot, prts.n)
@@ -210,6 +212,7 @@ for _, rtab in ipairs({
},
on_rightclick = advtrains.interlocking.signal_rc_handler,
can_dig = advtrains.interlocking.signal_can_dig,
+ after_dig_node = advtrains.interlocking.signal_after_dig,
})
-- rotatable by trackworker
advtrains.trackplacer.add_worked("advtrains_signals_ks:sign", typ, "_"..rot, prts.n)