diff options
author | orwell96 <orwell@bleipb.de> | 2018-10-29 20:06:04 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-10-29 20:06:04 +0100 |
commit | 68f047cc01b68daee71336ba00d121776316b808 (patch) | |
tree | 31f1c839c1e87264fb7c35777003fd8c8f54cd8b /advtrains_interlocking/database.lua | |
parent | 60b725499289c810eaf045ed22a1100402a0b8c9 (diff) | |
download | advtrains-68f047cc01b68daee71336ba00d121776316b808.tar.gz advtrains-68f047cc01b68daee71336ba00d121776316b808.tar.bz2 advtrains-68f047cc01b68daee71336ba00d121776316b808.zip |
Miscellaneous routesetting fixes
- Move handling of "route_committed" to the routesetting function
- Put aspect in every TCBS on the way
- Add "route_origin" to TCBS fields to prevent subroute cancelling
- Cancel entire route when another train enters from the wrong TCB
Diffstat (limited to 'advtrains_interlocking/database.lua')
-rw-r--r-- | advtrains_interlocking/database.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/advtrains_interlocking/database.lua b/advtrains_interlocking/database.lua index a2df111..299f6cc 100644 --- a/advtrains_interlocking/database.lua +++ b/advtrains_interlocking/database.lua @@ -248,9 +248,7 @@ end -- various helper functions handling sigd's -local function sigd_equal(sigd, cmp) - return vector.equals(sigd.p, cmp.p) and sigd.s==cmp.s -end +local sigd_equal = advtrains.interlocking.sigd_equal local function insert_sigd_nodouble(list, sigd) for idx, cmp in pairs(list) do if sigd_equal(sigd, cmp) then |