diff options
author | orwell96 <orwell@bleipb.de> | 2018-10-10 21:49:52 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-10-10 21:49:52 +0200 |
commit | 33c839b40d48e154f5b03619a9bdce1bed1fc602 (patch) | |
tree | 9250365caab7ae75812421bf614f7de0f09d5014 /advtrains_luaautomation | |
parent | 8f8f009425a4d3341d3d00e6a537b5af320b5639 (diff) | |
download | advtrains-33c839b40d48e154f5b03619a9bdce1bed1fc602.tar.gz advtrains-33c839b40d48e154f5b03619a9bdce1bed1fc602.tar.bz2 advtrains-33c839b40d48e154f5b03619a9bdce1bed1fc602.zip |
Add signal safety control override, restructure control system
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r-- | advtrains_luaautomation/atc_rail.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua index d001d88..1fab620 100644 --- a/advtrains_luaautomation/atc_rail.lua +++ b/advtrains_luaautomation/atc_rail.lua @@ -50,9 +50,7 @@ function r.fire_event(pos, evtdata) atc_send = function(cmd) if not train_id then return false end assertt(cmd, "string") - advtrains.atc.train_reset_command(train_id) - train.atc_command=cmd - train.atc_arrow=atc_arrow + advtrains.atc.train_set_command(train, cmd, atc_arrow) return true end, set_line = function(line) @@ -62,7 +60,7 @@ function r.fire_event(pos, evtdata) atc_reset = function(cmd) if not train_id then return false end assertt(cmd, "string") - advtrains.atc.train_reset_command(train_id) + advtrains.atc.train_reset_command(train) return true end, atc_arrow = atc_arrow, |