Workaround

This commit is contained in:
orwell96 2019-01-21 23:57:19 +01:00
parent f705feb4ee
commit 85f1600f53
1 changed files with 4 additions and 1 deletions

View File

@ -473,12 +473,15 @@ function advtrains.train_step_b(id, train, dtime)
end
function advtrains.train_step_c(id, train, dtime)
if train.no_step or train.wait_for_path or not train.path then return end
if train.no_step or train.wait_for_path or not train.path then return end
-- all location/extent-critical actions have been done.
-- calculate the new occupation window
run_callbacks_update(id, train)
-- Return if something(TM) damaged the path
if train.no_step or train.wait_for_path or not train.path then return end
advtrains.path_clear_unused(train)
advtrains.path_setrestore(train)