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.
master
orwell96 2021-02-10 20:55:20 +01:00
parent 1e0ae9fcc5
commit 0a9cb548d7
1 changed files with 0 additions and 1 deletions

View File

@ -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)