diff options
author | orwell96 <orwell@bleipb.de> | 2017-10-25 11:49:34 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2017-10-25 11:49:34 +0200 |
commit | f1a8b4f505313f3b2c37ced2dd3402e2740889fb (patch) | |
tree | 8bf4bd99774ad7e7f5b48edcd3598bafe722ba57 /advtrains_luaautomation/atc_rail.lua | |
parent | 1f9a9062e022c401826155efd3cd45a479d50c15 (diff) | |
download | advtrains-f1a8b4f505313f3b2c37ced2dd3402e2740889fb.tar.gz advtrains-f1a8b4f505313f3b2c37ced2dd3402e2740889fb.tar.bz2 advtrains-f1a8b4f505313f3b2c37ced2dd3402e2740889fb.zip |
Implement multi-occupation in detector.on_node table to finally fix collisions
Diffstat (limited to 'advtrains_luaautomation/atc_rail.lua')
-rw-r--r-- | advtrains_luaautomation/atc_rail.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_luaautomation/atc_rail.lua b/advtrains_luaautomation/atc_rail.lua index 1fae28d..b90baf8 100644 --- a/advtrains_luaautomation/atc_rail.lua +++ b/advtrains_luaautomation/atc_rail.lua @@ -24,7 +24,7 @@ function r.fire_event(pos, evtdata) --prepare ingame API for ATC. Regenerate each time since pos needs to be known --If no train, then return false. - local train_id=advtrains.detector.on_node[ph] + local train_id=advtrains.detector.get(pos) local train, atc_arrow, tvel if train_id then train=advtrains.trains[train_id] end if train then |