From 2e16660278154d1e217d11764f87ea431504d7c9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 28 Sep 2018 01:49:17 +0200 Subject: [PATCH] fixed a bug in goldberg rebasing --- geometry2.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/geometry2.cpp b/geometry2.cpp index a12ffb1f..6d8dcc71 100644 --- a/geometry2.cpp +++ b/geometry2.cpp @@ -289,6 +289,11 @@ void virtualRebase(cell*& base, T& at, bool tohex, const U& check) { newbase = c; } } + if(newbase) { + base = newbase; + at = bestV * at; + } + else at = master_relative(base, true) * at; if(tohex && GOLDBERG) { while(true) { newbase = NULL; @@ -306,11 +311,6 @@ void virtualRebase(cell*& base, T& at, bool tohex, const U& check) { at = bestV * at; } } - if(newbase) { - base = newbase; - at = bestV * at; - } - else at = master_relative(base, true) * at; break; } }