From 70c0fb1c7a376c0439b37a86a972a240344e2d1e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 30 Sep 2021 12:04:58 +0200 Subject: [PATCH] UNRECTIFIED now works with non-orientable --- goldberg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/goldberg.cpp b/goldberg.cpp index 6a54478d..626ca29e 100644 --- a/goldberg.cpp +++ b/goldberg.cpp @@ -1186,11 +1186,13 @@ EX namespace gp { cell *create_move(cell *parent, int d) { if(UNRECTIFIED) { cellwalker cw(mapping[parent], d); + bool b = cw.mirrored; in_underlying([&] { cw += wstep; cw --; cw += wstep; cw --; + if(cw.mirrored != b) cw++; }); cw.at = get_mapped(cw.at, 0); parent->c.connect(d, cw.at, cw.spin, cw.mirrored);