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
parent
1e0ae9fcc5
commit
0a9cb548d7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue