aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trackplacer.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2023-09-05 20:46:18 +0200
committerorwell96 <orwell@bleipb.de>2023-09-05 20:46:18 +0200
commit10ea9b896b140ecc5ed4e53e7ee1daeaa4efa46e (patch)
treeb7cea4455981fc5f6e8f7af15c53c59e0553828c /advtrains/trackplacer.lua
parent950d6f640cae76d28253fadb7974a064017b104c (diff)
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)
Diffstat (limited to 'advtrains/trackplacer.lua')
-rw-r--r--advtrains/trackplacer.lua2
1 files changed, 1 insertions, 1 deletions
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