From edc7f1ec5f1d045f23eb53f6db8c5ed1daf55abf Mon Sep 17 00:00:00 2001 From: orwell96 Date: Tue, 24 Jan 2017 21:10:53 +0100 Subject: Fix find&replace mistake that broke ATC command interpretation --- advtrains/advtrains/atc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains') 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, -- cgit v1.2.3