From 8f4c90c5a53b531451436b8e0a1ea8a3b750110e Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sat, 2 Jan 2021 18:00:12 +0100 Subject: Add debug prints, modify LZB to fix problems with look_ahead --- advtrains_interlocking/approach.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'advtrains_interlocking') diff --git a/advtrains_interlocking/approach.lua b/advtrains_interlocking/approach.lua index 14a31ce..9313128 100644 --- a/advtrains_interlocking/approach.lua +++ b/advtrains_interlocking/approach.lua @@ -21,6 +21,10 @@ local function get_over_function(speed, shunt) -- Set train 1 index backward. Hope this does not lead to bugs... --train.index = index - 0.5 train.speed_restriction = 0 + + --TODO temporary + advtrains.drb_dump(id) + error("Debug: "..id.." triggered LZB-0") else train.speed_restriction = speed train.is_shunt = shunt -- cgit v1.2.3