aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-08-13 11:27:38 +0200
committerorwell96 <orwell@bleipb.de>2018-08-13 11:27:38 +0200
commit5fad61e9c981115a183527ffe58a7bbe26fea4e7 (patch)
tree7cae4779164491e1acac7189d7108c4130d710c6 /advtrains
parent3dc5b28774670b3c7b505f3f6f9603ba683a299e (diff)
downloadadvtrains-5fad61e9c981115a183527ffe58a7bbe26fea4e7.tar.gz
advtrains-5fad61e9c981115a183527ffe58a7bbe26fea4e7.tar.bz2
advtrains-5fad61e9c981115a183527ffe58a7bbe26fea4e7.zip
Fix various bugs found while testing
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/signals.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/advtrains/signals.lua b/advtrains/signals.lua
index 2caec79..1bbd7d4 100644
--- a/advtrains/signals.lua
+++ b/advtrains/signals.lua
@@ -60,9 +60,9 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
advtrains = {
set_aspect = function(pos, node, asp)
if asp.main.free then
- advtrains.ndb.swap_node(pos, {name = "advtrains:retrosignal_on_"..rotation, param2 = node.param2}, true)
+ advtrains.ndb.swap_node(pos, {name = "advtrains:retrosignal_on"..rotation, param2 = node.param2}, true)
else
- advtrains.ndb.swap_node(pos, {name = "advtrains:retrosignal_off_"..rotation, param2 = node.param2}, true)
+ advtrains.ndb.swap_node(pos, {name = "advtrains:retrosignal_off"..rotation, param2 = node.param2}, true)
end
end
},
@@ -120,9 +120,9 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
advtrains = {
set_aspect = function(pos, node, asp)
if asp.main.free then
- advtrains.ndb.swap_node(pos, {name = "advtrains:signal_on_"..rotation, param2 = node.param2}, true)
+ advtrains.ndb.swap_node(pos, {name = "advtrains:signal_on"..rotation, param2 = node.param2}, true)
else
- advtrains.ndb.swap_node(pos, {name = "advtrains:signal_off_"..rotation, param2 = node.param2}, true)
+ advtrains.ndb.swap_node(pos, {name = "advtrains:signal_off"..rotation, param2 = node.param2}, true)
end
end
},