aboutsummaryrefslogtreecommitdiff
path: root/advtrains/signals.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-10-17 17:37:03 +0200
committerorwell96 <orwell@bleipb.de>2018-10-17 17:37:03 +0200
commite04d84cb4c137d006587f932b149007bdbe6823a (patch)
tree7cb8953e87c823c9bfc967c58ddb3bba735d4ba5 /advtrains/signals.lua
parent85d752df6b33e190be71cddeb7839fc482be1bda (diff)
downloadadvtrains-e04d84cb4c137d006587f932b149007bdbe6823a.tar.gz
advtrains-e04d84cb4c137d006587f932b149007bdbe6823a.tar.bz2
advtrains-e04d84cb4c137d006587f932b149007bdbe6823a.zip
Actually allow what manual promises (setting IP on non-assigned signals)
Diffstat (limited to 'advtrains/signals.lua')
-rw-r--r--advtrains/signals.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/advtrains/signals.lua b/advtrains/signals.lua
index 669e825..135fae9 100644
--- a/advtrains/signals.lua
+++ b/advtrains/signals.lua
@@ -69,6 +69,8 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
local sigd = advtrains.interlocking and advtrains.interlocking.db.get_sigd_for_signal(pos)
if sigd then
advtrains.interlocking.show_signalling_form(sigd, pname)
+ elseif advtrains.interlocking and player:get_player_control().aux1 then
+ advtrains.interlocking.show_ip_form(pos, pname)
elseif advtrains.check_turnout_signal_protection(pos, player:get_player_name()) then
advtrains.ndb.swap_node(pos, {name = "advtrains:retrosignal_"..f.as..rotation, param2 = node.param2}, true)
end
@@ -124,6 +126,8 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
local sigd = advtrains.interlocking and advtrains.interlocking.db.get_sigd_for_signal(pos)
if sigd then
advtrains.interlocking.show_signalling_form(sigd, pname)
+ elseif advtrains.interlocking and player:get_player_control().aux1 then
+ advtrains.interlocking.show_ip_form(pos, pname)
elseif advtrains.check_turnout_signal_protection(pos, player:get_player_name()) then
advtrains.setstate(pos, f.als, node)
end
@@ -190,6 +194,8 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red",
local sigd = advtrains.interlocking and advtrains.interlocking.db.get_sigd_for_signal(pos)
if sigd then
advtrains.interlocking.show_signalling_form(sigd, pname)
+ elseif advtrains.interlocking and player:get_player_control().aux1 then
+ advtrains.interlocking.show_ip_form(pos, pname)
elseif advtrains.check_turnout_signal_protection(pos, player:get_player_name()) then
advtrains.setstate(pos, f.als, node)
end