diff options
author | orwell96 <orwell@bleipb.de> | 2021-01-02 18:00:12 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-02-10 16:39:46 +0100 |
commit | 8f4c90c5a53b531451436b8e0a1ea8a3b750110e (patch) | |
tree | a347eddc1ec522eb083430417f79c129cde2ddfc /advtrains_interlocking/approach.lua | |
parent | 3c42d87dc0b4b3aed454e68541bff711dba75dc9 (diff) | |
download | advtrains-8f4c90c5a53b531451436b8e0a1ea8a3b750110e.tar.gz advtrains-8f4c90c5a53b531451436b8e0a1ea8a3b750110e.tar.bz2 advtrains-8f4c90c5a53b531451436b8e0a1ea8a3b750110e.zip |
Add debug prints, modify LZB to fix problems with look_ahead
Diffstat (limited to 'advtrains_interlocking/approach.lua')
-rw-r--r-- | advtrains_interlocking/approach.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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 |