aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-12-12 13:59:24 +0100
committerorwell96 <orwell@bleipb.de>2021-02-10 16:35:45 +0100
commita78ff65b31f8f6eb65580cf1002bbc0c53ef345e (patch)
treea50be9d1236528fa3358e9cd02d05f1ee0a08715
parent816245588d62e3364b974be07989298887c45cfe (diff)
downloadadvtrains-a78ff65b31f8f6eb65580cf1002bbc0c53ef345e.tar.gz
advtrains-a78ff65b31f8f6eb65580cf1002bbc0c53ef345e.tar.bz2
advtrains-a78ff65b31f8f6eb65580cf1002bbc0c53ef345e.zip
Fix inconsistency between node enter callback and lzb approach callbacks
(this caused the lzb approach to be called on nodes that have just received an enter event, which is not intended)
-rw-r--r--advtrains/lzb.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/lzb.lua b/advtrains/lzb.lua
index 6cbf4ab..8846573 100644
--- a/advtrains/lzb.lua
+++ b/advtrains/lzb.lua
@@ -151,7 +151,7 @@ end
local function invalidate(train)
train.lzb = {
- trav = atfloor(train.index),
+ trav = atround(train.index),
data = {},
oncoming = {},
}