diff options
Diffstat (limited to 'durt/nodes/(-4626,7,-6638).lua')
-rw-r--r-- | durt/nodes/(-4626,7,-6638).lua | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/durt/nodes/(-4626,7,-6638).lua b/durt/nodes/(-4626,7,-6638).lua index 17a83e8..f602f9b 100644 --- a/durt/nodes/(-4626,7,-6638).lua +++ b/durt/nodes/(-4626,7,-6638).lua @@ -1,23 +1,19 @@ local signal = POS(-4626,7,-6616) if event.train and atc_arrow then - local rc = (get_rc() or "") - if rc:match("BFT_shunt_platforms") then + if F.has_rc("BFT_shunt_platforms") then local control = {"B0WD2A0R"} - if rc:match("BFT_shunt_Platform1") then + if F.has_rc("BFT_shunt_Platform1") then set_route(signal,"SHUNT Platform 1") control[2] = "S3CplS1" - elseif rc:match("BFT_shunt_Track2") then + elseif F.has_rc("BFT_shunt_Track2") then set_route(signal,"SHUNT Track 2") control[2] = "S3CplS1" - elseif rc:match("BFT_shunt_around_Track2") then - set_route(signal,"Around via Track2") + elseif F.has_rc("BFT_shunt_around_Track2") then + set_route(signal,"Around via Track 2") control[2] = "S4" end - - if #control > 1 then - control[1] = table.concat(control,"") - end - atc_send(control[1]) + control = table.concat(control,"") + atc_send(control) return end end
\ No newline at end of file |