Commit adc3948d authored by Maxence Le Grand's avatar Maxence Le Grand
Browse files

Correction d'un petit oubli (bien qu'il soit trop tard)

parent f42cf695
......@@ -200,7 +200,9 @@ int choosedicetokeepIA(Dice dices[8], Game * currentGame, Player * IA){
state.listepickomino[i][1]=0;
}
while (currentGame->mainStack->current!=NULL){
state.listepickomino[currentGame->mainStack->current->val-21][0]=currentGame->mainStack->current->warms;
if(currentGame->mainStack->current->returned==0) {
state.listepickomino[currentGame->mainStack->current->val - 21][0] = currentGame->mainStack->current->warms;
}
currentGame->mainStack->current=currentGame->mainStack->current->next;
}
for (int i=0; i<currentGame->nbplayers; i++){
......@@ -278,7 +280,9 @@ Choice choosetostayorthrowagainIA(Dice dices[8], Game * currentGame, Player * IA
state.listepickomino[i][1] = 0;
}
while (currentGame->mainStack->current != NULL) {
state.listepickomino[currentGame->mainStack->current->val - 21][0] = currentGame->mainStack->current->warms;
if(currentGame->mainStack->current->returned==0) {
state.listepickomino[currentGame->mainStack->current->val - 21][0] = currentGame->mainStack->current->warms;
}
currentGame->mainStack->current = currentGame->mainStack->current->next;
}
for ( i = 0; i < currentGame->nbplayers; i++) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment