aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-08-12 16:36:20 +0200
committerorwell96 <orwell@bleipb.de>2018-08-12 16:36:20 +0200
commit0ec89364c01eceb5c47f9cc3503d3561064b7fdb (patch)
treeb34f670881aa19a2266fdbf4ce825a500399115d /advtrains/trainlogic.lua
parentd7e29180099fceb7fec8a84efddf9ca7b53194d0 (diff)
downloadadvtrains-0ec89364c01eceb5c47f9cc3503d3561064b7fdb.tar.gz
advtrains-0ec89364c01eceb5c47f9cc3503d3561064b7fdb.tar.bz2
advtrains-0ec89364c01eceb5c47f9cc3503d3561064b7fdb.zip
Fix ATC rail reversing
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 e21e9a0..7cd1c1d 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -956,6 +956,9 @@ function advtrains.invert_train(train_id)
if train.door_open then
train.door_open = - train.door_open
end
+ if train.atc_command then
+ train.atc_arrow = not train.atc_arrow
+ end
advtrains.path_invalidate(train)
advtrains.couple_invalidate(train)