From 878cfbb48fea0be248e88db22208d016afff9da0 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 18 Nov 2020 21:47:17 +0100 Subject: [PATCH] Luaprinter: Assume twoway by default, more relaxed interpretation of oneway tag, remove throwing error --- AspectedRouting/IO/itinero1/LuaPrinter1.MainFunction.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AspectedRouting/IO/itinero1/LuaPrinter1.MainFunction.cs b/AspectedRouting/IO/itinero1/LuaPrinter1.MainFunction.cs index 52853f9..a3c8739 100644 --- a/AspectedRouting/IO/itinero1/LuaPrinter1.MainFunction.cs +++ b/AspectedRouting/IO/itinero1/LuaPrinter1.MainFunction.cs @@ -90,7 +90,7 @@ namespace AspectedRouting.IO.itinero1 " result.direction = 0", " if (oneway == \"with\" or oneway == \"yes\") then", " result.direction = 1", - " if (oneway == \"against\" or oneway == \"-1\") then", + " elseif (oneway == \"against\" or oneway == \"-1\") then", " result.direction = 2", " end", "",