aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-01-24 21:10:53 +0100
committerorwell96 <mono96.mml@gmail.com>2017-01-24 21:10:53 +0100
commitedc7f1ec5f1d045f23eb53f6db8c5ed1daf55abf (patch)
tree34373863b108d5f2fff2b208e4d7e38584d64c80
parent29886d56571f465b448173cfc0ab0dded60d1727 (diff)
downloadadvtrains-edc7f1ec5f1d045f23eb53f6db8c5ed1daf55abf.tar.gz
advtrains-edc7f1ec5f1d045f23eb53f6db8c5ed1daf55abf.tar.bz2
advtrains-edc7f1ec5f1d045f23eb53f6db8c5ed1daf55abf.zip
Fix find&replace mistake that broke ATC command interpretation
-rw-r--r--advtrains/advtrains/atc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains/atc.lua b/advtrains/advtrains/atc.lua
index 63ea3fd..cd9476c 100644
--- a/advtrains/advtrains/atc.lua
+++ b/advtrains/advtrains/atc.lua
@@ -150,7 +150,7 @@ local matchptn={
train.tarvelocity=train.max_speed
return 2
end,
- ["attrans([0-9]+)"]=function(id, train, match)
+ ["S([0-9]+)"]=function(id, train, match)
train.tarvelocity=tonumber(match)
return #match+1
end,