aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
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.