From 59b45c1be0889503833c136b8283737929783c5b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 19 Aug 2022 17:40:04 +0200 Subject: [PATCH] fixup to disable distance checks --- rulegen.cpp | 1 + rulegen3.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/rulegen.cpp b/rulegen.cpp index a18ada74..982e2e2d 100644 --- a/rulegen.cpp +++ b/rulegen.cpp @@ -91,6 +91,7 @@ static const flagtype w_skip_transducer_loops = Flag(33); /*< skip loops during static const flagtype w_skip_transducer_terminate = Flag(34); /*< skip termination during the transducer test */ static const flagtype w_r3_all_errors = Flag(35); /*< consider all errors for R3 */ static const flagtype w_r3_no_road_shortcuts = Flag(36); /*< consider all errors for R3 */ +static const flagtype w_ignore_transducer_dist = Flag(37); /*< ignore distance errors while testing the transducers */ #endif /** these control the output */ diff --git a/rulegen3.cpp b/rulegen3.cpp index 36217a58..4b7ea37d 100644 --- a/rulegen3.cpp +++ b/rulegen3.cpp @@ -252,6 +252,8 @@ struct vstate { int current_pos; int current_root; vector> rpath; + int steps; + vstate() { steps = 0; } }; map> rev_roadsign_id;