aboutsummaryrefslogtreecommitdiff
path: root/advtrains/lzb.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2021-01-14 11:08:16 +0100
committerorwell96 <orwell@bleipb.de>2021-02-10 16:42:15 +0100
commit1b8a3dfaf21cd485b7018491c70ebff4c639bfcf (patch)
tree3692266b5244096e991d51882f7875e93d38ca94 /advtrains/lzb.lua
parent4d13b158420d4a8d5fc0020ee2b0f9a0014c5541 (diff)
downloadadvtrains-1b8a3dfaf21cd485b7018491c70ebff4c639bfcf.tar.gz
advtrains-1b8a3dfaf21cd485b7018491c70ebff4c639bfcf.tar.bz2
advtrains-1b8a3dfaf21cd485b7018491c70ebff4c639bfcf.zip
Add save interval setting, fix accidental global variable, at_sync_ndb on server priv not limited, timetaking for restore_all
Diffstat (limited to 'advtrains/lzb.lua')
-rw-r--r--advtrains/lzb.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/lzb.lua b/advtrains/lzb.lua
index 1aa9e5f..15d217e 100644
--- a/advtrains/lzb.lua
+++ b/advtrains/lzb.lua
@@ -83,7 +83,7 @@ local function look_ahead(id, train)
--local brake_i = advtrains.path_get_index_by_offset(train, train.index, brakedst + params.BRAKE_SPACE)
-- worst case (don't use index_by_offset)
- brake_i = atfloor(train.index + brakedst + params.BRAKE_SPACE)
+ local brake_i = atfloor(train.index + brakedst + params.BRAKE_SPACE)
atprint("LZB: looking ahead up to ", brake_i)
--local aware_i = advtrains.path_get_index_by_offset(train, brake_i, AWARE_ZONE)