/* Unset possible flags until we find an island. */
for (y = 0; y < state->h; y++) {
is_s = IDX(state, gridi, idx);
/* Unset possible flags until we find an island. */
for (y = 0; y < state->h; y++) {
is_s = IDX(state, gridi, idx);
IDX(state, possv, idx) = 0;
idx += w;
}
for (; y < state->h; y++) {
IDX(state, possv, idx) = 0;
idx += w;
}
for (; y < state->h; y++) {
- maxb = IDX(state, maxv, idx);
- np = min(maxb, min(is_s->count, is_f->count));
+ np = min(maxb, is_f->count);
bl = 0;
for (x = 0; x < state->w; x++) {
is_s = IDX(state, gridi, idx);
bl = 0;
for (x = 0; x < state->w; x++) {
is_s = IDX(state, gridi, idx);
IDX(state, possh, idx) = 0;
idx += 1;
}
for (; x < state->w; x++) {
IDX(state, possh, idx) = 0;
idx += 1;
}
for (; x < state->w; x++) {
- maxb = IDX(state, maxh, idx);
- np = min(maxb, min(is_s->count, is_f->count));
+ np = min(maxb, is_f->count);