aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-10-10 23:31:12 +0200
committerorwell96 <orwell@bleipb.de>2018-10-10 23:31:12 +0200
commit11fe530e18248b14c40edb6b56e9e3f47af3461c (patch)
treec403c8c9f2a87d7bde055da9804f2341c777b5f6 /advtrains/trainlogic.lua
parent9db52bcd32b49d6b98644dcb7edcf14987850fa5 (diff)
downloadadvtrains-11fe530e18248b14c40edb6b56e9e3f47af3461c.tar.gz
advtrains-11fe530e18248b14c40edb6b56e9e3f47af3461c.tar.bz2
advtrains-11fe530e18248b14c40edb6b56e9e3f47af3461c.zip
Properly handle speed restrictions
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r--advtrains/trainlogic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua
index f94bda0..4ca212f 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -1029,7 +1029,7 @@ function advtrains.invert_train(train_id)
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
+ train.speed_restriction = nil
end
-- returns: train id, index of one of the trains that stand at this position.