aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/routesetting.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-11-19 23:53:42 +0100
committerorwell96 <orwell@bleipb.de>2018-11-19 23:53:42 +0100
commite2a844f5bfb1b8e88951ddb66ed9d0ae0d40256b (patch)
tree8ca21bca1cdb4a8603f7cf967532580ed4b17e73 /advtrains_interlocking/routesetting.lua
parent5874a6d3f4e8668ac790d7882b5fe85fd20125a0 (diff)
downloadadvtrains-e2a844f5bfb1b8e88951ddb66ed9d0ae0d40256b.tar.gz
advtrains-e2a844f5bfb1b8e88951ddb66ed9d0ae0d40256b.tar.bz2
advtrains-e2a844f5bfb1b8e88951ddb66ed9d0ae0d40256b.zip
Permit basic signal aspect setting
(basically only usable with Ks signals, because they're the only signals supporting slow move and/or shunt move
Diffstat (limited to 'advtrains_interlocking/routesetting.lua')
-rw-r--r--advtrains_interlocking/routesetting.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains_interlocking/routesetting.lua b/advtrains_interlocking/routesetting.lua
index f13fcea..1edc631 100644
--- a/advtrains_interlocking/routesetting.lua
+++ b/advtrains_interlocking/routesetting.lua
@@ -51,6 +51,7 @@ function ilrs.set_route(signal, route, try)
return false, trsn, cbts, cblk
end
end
+
-- we start at the tc designated by signal
local c_sigd = signal
@@ -122,7 +123,7 @@ function ilrs.set_route(signal, route, try)
}
if c_tcbs.signal then
c_tcbs.route_committed = true
- c_tcbs.aspect = asp_generic_free
+ c_tcbs.aspect = route.aspect or asp_generic_free
c_tcbs.route_origin = signal
advtrains.interlocking.update_signal_aspect(c_tcbs)
end