From ed156e9efbd287a8d27a6f3b5f6f070f6cbb4d09 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 1 Nov 2021 17:21:50 +0100 Subject: [PATCH] rulegen:: reinforced trace_root_path --- rulegen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rulegen.cpp b/rulegen.cpp index cd9d375d..96699dca 100644 --- a/rulegen.cpp +++ b/rulegen.cpp @@ -644,11 +644,15 @@ void trace_root_path(vector& rp, twalker cw) { ufind(cw); handle_distance_errors(); int di = side ? -1 : get_parent_dir(cw.at); + auto cw1 = cw; + ufind(cw); + if(cw != cw1) goto next; for(int i=0; itype; i++) { if((!side) && (cw+i).spin != di) continue; tcell *c1 = (cw+i).peek(); if(!c1) continue; be_solid(c1); + handle_distance_errors(); if(c1->dist < d) { rp.push_back(i); cw += i;