From a44a4665a85204b9f61212222905f361e5804cfa Mon Sep 17 00:00:00 2001 From: EvilSpirit Date: Fri, 6 May 2016 17:46:14 +0600 Subject: [PATCH] In GenerateAll, accept explicitly permitted redundant sketches as OK. Before this commit, they were considered unsolved and were re-solved over and over unnecessarily. --- src/generate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generate.cpp b/src/generate.cpp index c228a4bd..0931d7d7 100644 --- a/src/generate.cpp +++ b/src/generate.cpp @@ -161,7 +161,7 @@ void SolveSpaceUI::GenerateAll(GenerateType type, bool andFindFree, bool genForB // since all groups after the active group are hidden. for(i = 0; i < SK.groupOrder.n; i++) { Group *g = SK.GetGroup(SK.groupOrder.elem[i]); - if((!g->clean) || (g->solved.how != System::SOLVED_OKAY)) { + if((!g->clean) || !g->IsSolvedOkay()) { first = min(first, i); } if(g->h.v == SS.GW.activeGroup.v) {