aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-10-10 23:17:31 +0200
committerorwell96 <orwell@bleipb.de>2018-10-10 23:17:31 +0200
commit9db52bcd32b49d6b98644dcb7edcf14987850fa5 (patch)
tree6ed4e2859c433cdd4e42b6f4163294b4b3bd2fdc /advtrains/trainlogic.lua
parent842a85606e4495dd631c2916d09a760d74a0ce13 (diff)
downloadadvtrains-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.lua3
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.