ret->w = atoi(cfg[0].sval);
ret->h = atoi(cfg[1].sval);
ret->n = atoi(cfg[2].sval);
+ if (strchr(cfg[2].sval, '%'))
+ ret->n = ret->n * (ret->w * ret->h) / 100;
ret->unique = cfg[3].ival;
return ret;
#ifdef SOLVER_DIAGNOSTICS
printf("trying a set combination with %d %d\n",
squaresleft, minesleft);
-#endif SOLVER_DIAGNOSTICS
+#endif /* SOLVER_DIAGNOSTICS */
/*
* We've reached the end. See if we've got