aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-11-21 16:09:47 +0100
committerorwell96 <orwell@bleipb.de>2019-11-21 16:09:47 +0100
commit0252768c1619f9ae5cc1da2f5ad476f44ccff36c (patch)
tree569ef52a843cacb73940cd2973eb7e727f1379c0 /advtrains_interlocking
parent576365627a6ed8ba3fede9de1dce675a94747e48 (diff)
downloadadvtrains-0252768c1619f9ae5cc1da2f5ad476f44ccff36c.tar.gz
advtrains-0252768c1619f9ae5cc1da2f5ad476f44ccff36c.tar.bz2
advtrains-0252768c1619f9ae5cc1da2f5ad476f44ccff36c.zip
Fix the "red signals" bug that appeared when clicking a green signal
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r--advtrains_interlocking/routesetting.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/advtrains_interlocking/routesetting.lua b/advtrains_interlocking/routesetting.lua
index 8cde423..7c4d14c 100644
--- a/advtrains_interlocking/routesetting.lua
+++ b/advtrains_interlocking/routesetting.lua
@@ -281,8 +281,6 @@ end
-- newrte: If a new route should be set, the route index of it (in tcbs.routes). nil otherwise
-- cancel: true in combination with newrte=nil causes cancellation of the current route.
function ilrs.update_route(sigd, tcbs, newrte, cancel)
- -- in general, always show danger signal
- tcbs.aspect = nil
--atdebug("Update_Route for",sigd,tcbs.signal_name)
if tcbs.route_origin and not sigd_equal(tcbs.route_origin, sigd) then
--atdebug("Signal not in control, held by",tcbs.signal_name)