From 10ea9b896b140ecc5ed4e53e7ee1daeaa4efa46e Mon Sep 17 00:00:00 2001 From: orwell96 Date: Tue, 5 Sep 2023 20:46:18 +0200 Subject: Make the track registration less manual again to prevent duplicate code (but keep the template table in the track mod, as it's supposed to be) --- advtrains/trackplacer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains/trackplacer.lua') diff --git a/advtrains/trackplacer.lua b/advtrains/trackplacer.lua index 9d63199..71eb79c 100644 --- a/advtrains/trackplacer.lua +++ b/advtrains/trackplacer.lua @@ -49,7 +49,7 @@ function tp.register_candidate(tpg, name, ndef, as_single, as_double) for i=0,3 do if as_double then g.double[rotate(c1,i*4).."_"..rotate(c2,i*4)] = {name=name, param2=i} - if not is_symmmetrical then + if not is_symmetrical then g.double[rotate(c2,i*4).."_"..rotate(c1,i*4)] = {name=name, param2=i} -- if the track is unsymmetric (e.g. a curve), we may require the "wrong" orientation to fill a gap. end -- cgit v1.2.3