aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-02-21 09:36:25 +0100
committerorwell96 <orwell@bleipb.de>2019-02-21 09:36:25 +0100
commit086b2c0fb030a6a678046568d0b5542c0e3f6e5d (patch)
tree1bc1459e9b34825fb32094ce8c51429240add8f5
parent2ba75784c22ef914c2fbf427ef9c3b96473fe629 (diff)
downloadadvtrains-086b2c0fb030a6a678046568d0b5542c0e3f6e5d.tar.gz
advtrains-086b2c0fb030a6a678046568d0b5542c0e3f6e5d.tar.bz2
advtrains-086b2c0fb030a6a678046568d0b5542c0e3f6e5d.zip
possible fix for "trains standing at green signals"
-rw-r--r--advtrains_interlocking/signal_api.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_interlocking/signal_api.lua b/advtrains_interlocking/signal_api.lua
index 6704e18..d43125b 100644
--- a/advtrains_interlocking/signal_api.lua
+++ b/advtrains_interlocking/signal_api.lua
@@ -227,9 +227,9 @@ function advtrains.interlocking.signal_on_aspect_changed(pos)
local tns = advtrains.occ.get_trains_over(ipos)
for id, sidx in pairs(tns) do
local train = advtrains.trains[id]
- if train.index <= sidx then
+ --if train.index <= sidx then
advtrains.interlocking.lzb_invalidate(train)
- end
+ --end
end
end