diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-02-02 21:14:20 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-02-02 21:14:20 +0100 |
commit | 948482a99e4aae4d51ff97879432140645959f46 (patch) | |
tree | 7920fcec8ee918e56e3c67acbf1b7ce4335bc740 /advtrains/advtrains_luaautomation/atc_rail.lua | |
parent | b19033b224f4f8ec33f10ba40327f1d811c04fbb (diff) | |
download | advtrains-948482a99e4aae4d51ff97879432140645959f46.tar.gz advtrains-948482a99e4aae4d51ff97879432140645959f46.tar.bz2 advtrains-948482a99e4aae4d51ff97879432140645959f46.zip |
LuaAutomation: Add interrupt to the ingame API and implement initialization code handling and env management
Diffstat (limited to 'advtrains/advtrains_luaautomation/atc_rail.lua')
-rw-r--r-- | advtrains/advtrains_luaautomation/atc_rail.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains_luaautomation/atc_rail.lua b/advtrains/advtrains_luaautomation/atc_rail.lua index 2af03cf..b2a8aad 100644 --- a/advtrains/advtrains_luaautomation/atc_rail.lua +++ b/advtrains/advtrains_luaautomation/atc_rail.lua @@ -78,7 +78,7 @@ advtrains.register_tracks("default", { advtrains = { on_train_enter = function(pos, train_id) --do async. Event is fired in train steps - atlatc.interrupt.add(0, pos, {type="train", id=train_id}) + atlatc.interrupt.add(0, pos, {type="train", train=true, id=train_id}) end, }, luaautomation = { |