In GenerateAll, accept explicitly permitted redundant sketches as OK.

Before this commit, they were considered unsolved and were re-solved
over and over unnecessarily.
pull/4/head
EvilSpirit 2016-05-06 17:46:14 +06:00 committed by whitequark
parent febe0f5282
commit a44a4665a8
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ void SolveSpaceUI::GenerateAll(GenerateType type, bool andFindFree, bool genForB
// since all groups after the active group are hidden. // since all groups after the active group are hidden.
for(i = 0; i < SK.groupOrder.n; i++) { for(i = 0; i < SK.groupOrder.n; i++) {
Group *g = SK.GetGroup(SK.groupOrder.elem[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); first = min(first, i);
} }
if(g->h.v == SS.GW.activeGroup.v) { if(g->h.v == SS.GW.activeGroup.v) {