diff options
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/lzb.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/advtrains/lzb.lua b/advtrains/lzb.lua index 794ad42..da3b4b6 100644 --- a/advtrains/lzb.lua +++ b/advtrains/lzb.lua @@ -96,8 +96,10 @@ function advtrains.lzb_get_limit_zone(train, lzb, lever, vel) elseif v0 <= 0 then s = s + params.ADD_STAND else s = s + params.ADD_SLOW end - if lvr >= 2 then s = s + params.ZONE_HOLD end - if lvr >= 3 then s = s + params.ZONE_ROLL end + if v0 >= params.ZONE_VSLOW then + if lvr >= 2 then s = s + params.ZONE_HOLD end + if lvr >= 3 then s = s + params.ZONE_ROLL end + end return advtrains.path_get_index_by_offset(train, lzb.idx, -s) end |