diff options
author | orwell96 <orwell@bleipb.de> | 2023-07-01 22:37:09 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2023-07-01 22:37:09 +0200 |
commit | 8b5903a7293491901b555f720d5f79bbac681c1b (patch) | |
tree | ef4ca50ae3e15944b80b8dec15f672c687c6f72c | |
parent | 21ed1d23b5a71c962a47b5bc1f67a2833cd8f5ca (diff) | |
download | advtrains-8b5903a7293491901b555f720d5f79bbac681c1b.tar.gz advtrains-8b5903a7293491901b555f720d5f79bbac681c1b.tar.bz2 advtrains-8b5903a7293491901b555f720d5f79bbac681c1b.zip |
Fix path_invalidate_ahead after recent commit
-rw-r--r-- | advtrains/path.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/path.lua b/advtrains/path.lua index 15a61fe..7676947 100644 --- a/advtrains/path.lua +++ b/advtrains/path.lua @@ -162,7 +162,7 @@ function advtrains.path_invalidate_ahead(train, start_idx, ignore_when_passed) -- leave current node in path, it won't change. What might change is the path onward from here (e.g. switch) local i = idx + 1 while train.path[i] do - advtrains.occ.clear_item(train.id, advtrains.round_vector_floor_y(train.path[i])) + advtrains.occ.clear_specific_item(train.id, advtrains.round_vector_floor_y(train.path[i]), i) i = i+1 end train.path_ext_f=idx |