games/mines: chain new CLists in splitknown correctly
This commit is contained in:
parent
28c519295f
commit
02e584c06c
1 changed files with 2 additions and 2 deletions
|
@ -182,8 +182,8 @@ splitknown(CList **clp, int *nclp, int i, int *lastq)
|
||||||
cl[ncl - 1 + j].mines = cl[i].pts == cl[i].mines;
|
cl[ncl - 1 + j].mines = cl[i].pts == cl[i].mines;
|
||||||
cl[ncl - 1 + j].pts = 1;
|
cl[ncl - 1 + j].pts = 1;
|
||||||
cl[ncl - 1 + j].pt[0] = cl[i].pt[j];
|
cl[ncl - 1 + j].pt[0] = cl[i].pt[j];
|
||||||
cl[*lastq].next = i;
|
cl[*lastq].next = ncl - 1 + j;
|
||||||
*lastq = i;
|
*lastq = ncl - 1 + j;
|
||||||
}
|
}
|
||||||
cl[i].mines = cl[i].pts == cl[i].mines;
|
cl[i].mines = cl[i].pts == cl[i].mines;
|
||||||
*nclp += cl[i].pts - 1;
|
*nclp += cl[i].pts - 1;
|
||||||
|
|
Loading…
Reference in a new issue