diff options
author | orwell96 <orwell@bleipb.de> | 2018-10-10 23:17:31 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-10-10 23:17:31 +0200 |
commit | 9db52bcd32b49d6b98644dcb7edcf14987850fa5 (patch) | |
tree | 6ed4e2859c433cdd4e42b6f4163294b4b3bd2fdc /advtrains/trainlogic.lua | |
parent | 842a85606e4495dd631c2916d09a760d74a0ce13 (diff) | |
download | advtrains-9db52bcd32b49d6b98644dcb7edcf14987850fa5.tar.gz advtrains-9db52bcd32b49d6b98644dcb7edcf14987850fa5.tar.bz2 advtrains-9db52bcd32b49d6b98644dcb7edcf14987850fa5.zip |
Remote Routesetting from Onboard Computer
+ Fix lzb oncoming item deletion/speed restriction
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r-- | advtrains/trainlogic.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index 7147787..f94bda0 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -1027,6 +1027,9 @@ function advtrains.invert_train(train_id) table.insert(train.trainparts, 1, v)--notice insertion at first place end advtrains.update_trainpart_properties(train_id, true) + + -- TODO: this should actually be SHUNT_MAX_SPEED, but signals and lzb is not present everywhere + advtrains.speed_restriction = nil end -- returns: train id, index of one of the trains that stand at this position. |