Fix find&replace mistake that broke ATC command interpretation
authororwell96 <mono96.mml@gmail.com>
Tue, 24 Jan 2017 20:10:53 +0000 (21:10 +0100)
committerorwell96 <mono96.mml@gmail.com>
Tue, 24 Jan 2017 20:10:53 +0000 (21:10 +0100)
advtrains/advtrains/atc.lua

index 63ea3fd..cd9476c 100644 (file)
@@ -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,