aboutsummaryrefslogtreecommitdiff
path: root/advtrains/lzb.lua
diff options
context:
space:
mode:
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)