summaryrefslogtreecommitdiff
path: root/durt
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:57:48 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:57:48 +0200
commit68dd87842504e16bd25b33500b80f7c0d3e4f7f0 (patch)
treefcb8b989a0dc4fb56d762249c826298f1ee9e2f9 /durt
parentf7b6c1d04fe86be0d71b1936f1e7df4ad8a486db (diff)
downloadluaatc_envs-68dd87842504e16bd25b33500b80f7c0d3e4f7f0.tar.gz
luaatc_envs-68dd87842504e16bd25b33500b80f7c0d3e4f7f0.tar.bz2
luaatc_envs-68dd87842504e16bd25b33500b80f7c0d3e4f7f0.zip
State at 2022-06-25
Diffstat (limited to 'durt')
-rw-r--r--durt/nodes/(-1512,8,-2613).lua7
-rw-r--r--durt/nodes/(-1515,7,-2625).lua2
2 files changed, 4 insertions, 5 deletions
diff --git a/durt/nodes/(-1512,8,-2613).lua b/durt/nodes/(-1512,8,-2613).lua
index ecf8060..b38ec43 100644
--- a/durt/nodes/(-1512,8,-2613).lua
+++ b/durt/nodes/(-1512,8,-2613).lua
@@ -2,17 +2,16 @@ local ind = POS(-1513,8,-2613)
local loco_track = POS(-1515,7,-2625)
if event.ext_int then
- local m = event.message
- if m.command == "NOTIFY" and m.msg == "S27" then
+ if event.message == "S27" then
if F.indicator(ind) then return end
interrupt_pos(loco_track,"SEND")
- F.indicator(ind,"on")
+ F.indicator(ind,false)
return
end
end
if event.punch then
- F.indicator(ind,"on")
+ F.indicator(ind,true)
interrupt_pos(loco_track,"SEND")
return
end \ No newline at end of file
diff --git a/durt/nodes/(-1515,7,-2625).lua b/durt/nodes/(-1515,7,-2625).lua
index d29e92c..c12db21 100644
--- a/durt/nodes/(-1515,7,-2625).lua
+++ b/durt/nodes/(-1515,7,-2625).lua
@@ -3,7 +3,7 @@ local function send_train()
set_rc("FREIGHT S23 TanhX_NBS23toE3 BYARD BY_COLLECT_S27 MGGRatHYARD S27 S27_UNLOAD S27_Overburden BY_RTS S27_EXIT")
atc_send("S0WRD2A1S4")
set_route(POS(-1504,8,-2622),"Through to Lead")
- F.indicator(ind,"off")
+ F.indicator(ind,false)
end
if event.ext_int and atc_id then
send_train()