aboutsummaryrefslogtreecommitdiff
path: root/advtrains/atc.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-08-12 13:23:36 +0200
committerorwell96 <orwell@bleipb.de>2018-08-12 13:23:36 +0200
commit6cdb47edd231da08b32b8258eaa507ff312134cd (patch)
tree27811fa34404a022b4ab8d8b9105be1a0b810868 /advtrains/atc.lua
parent0d130bb262f25f089d2633479afa0ecee24256e6 (diff)
downloadadvtrains-6cdb47edd231da08b32b8258eaa507ff312134cd.tar.gz
advtrains-6cdb47edd231da08b32b8258eaa507ff312134cd.tar.bz2
advtrains-6cdb47edd231da08b32b8258eaa507ff312134cd.zip
Add routesetting callbacks.
Now, only the signal aspect setting is still missing
Diffstat (limited to 'advtrains/atc.lua')
-rw-r--r--advtrains/atc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/atc.lua b/advtrains/atc.lua
index 480c043..8e23205 100644
--- a/advtrains/atc.lua
+++ b/advtrains/atc.lua
@@ -194,7 +194,7 @@ local matchptn={
return #match+1
end,
["R"]=function(id, train)
- if train.velocity<=0 then
+ if train.velocity<=0 then --TODO this code still uses movedir
train.movedir=train.movedir*-1
train.atc_arrow = not train.atc_arrow
else