aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-02-10 20:55:20 +0100
committerorwell96 <orwell@bleipb.de>2021-02-10 20:55:20 +0100
commit0a9cb548d79b8019762d3629a49afe3d257cda43 (patch)
tree61ce74061dda62a1e62d8fb2088433c9e5e0aa6b
parent1e0ae9fcc5a28d84c0686fd55e3552fd24ae2224 (diff)
downloadadvtrains-0a9cb548d79b8019762d3629a49afe3d257cda43.tar.gz
advtrains-0a9cb548d79b8019762d3629a49afe3d257cda43.tar.bz2
advtrains-0a9cb548d79b8019762d3629a49afe3d257cda43.zip
Prevent calling approach callbacks during routesetting
interlocking.set_route() was updating the signal aspect, which caused LZB's invalidate_ahead callback to run, although the route isn't yet fully set. Don't look ahead at this point, but instead in the next train step.
-rw-r--r--advtrains/lzb.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/advtrains/lzb.lua b/advtrains/lzb.lua
index f24ab4b..6a899d6 100644
--- a/advtrains/lzb.lua
+++ b/advtrains/lzb.lua
@@ -259,7 +259,6 @@ end)
advtrains.te_register_on_invalidate_ahead(function(id, train, start_idx)
advtrains.lzb_invalidate_ahead(train, start_idx)
- look_ahead(id, train)
end)
advtrains.te_register_on_update(function(id, train)