aboutsummaryrefslogtreecommitdiff
path: root/advtrains_signals_ks
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2024-06-03 23:38:12 +0200
committerorwell <orwell@bleipb.de>2024-06-03 23:38:12 +0200
commit44a8cef1d5f2433502f5982f1d57410f49bb3afc (patch)
treefdbec5b77b0249db1a27642750c199b840fe07b4 /advtrains_signals_ks
parentf52653209aecb2310c1fb9598391c86113296f27 (diff)
downloadadvtrains-44a8cef1d5f2433502f5982f1d57410f49bb3afc.tar.gz
advtrains-44a8cef1d5f2433502f5982f1d57410f49bb3afc.tar.bz2
advtrains-44a8cef1d5f2433502f5982f1d57410f49bb3afc.zip
set_aspect: Flexibility, set aspect either via name or allow to fully specify table (for advanced signals)
Diffstat (limited to 'advtrains_signals_ks')
-rwxr-xr-xadvtrains_signals_ks/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains_signals_ks/init.lua b/advtrains_signals_ks/init.lua
index 52f8c58..46b9971 100755
--- a/advtrains_signals_ks/init.lua
+++ b/advtrains_signals_ks/init.lua
@@ -53,6 +53,7 @@ local applyaspectf_main = function(rot)
if main_aspect.halt then
-- halt aspect, set red and don't do anything further
advtrains.ndb.swap_node(pos, {name="advtrains_signals_ks:hs_danger_"..rot, param2 = node.param2})
+ setzs3(pos, "off", rot)
setzs3v(pos, nil, rot)
return
end