Commit 4ef7662f authored by Erwan's avatar Erwan

FIX: Clique du milieu uniquement sur les cases révélées (fix la perte de la partie)

parent 2ea5ad0c
......@@ -222,8 +222,9 @@ int main(void)
}
if(IsMouseButtonPressed(MOUSE_MIDDLE_BUTTON) && onTile){
lose = revelerCase(matriceMines, curCaseX, curCaseY, nbLineMatrice, nbColumnMatrice);
lose = revelerVoisins(curCaseX, curCaseY, matriceMines, nbLineMatrice, nbColumnMatrice);
if(matriceMines[curCaseX][curCaseY]->isPressed){
lose = revelerVoisins(curCaseX, curCaseY, matriceMines, nbLineMatrice, nbColumnMatrice);
}
}
}else{
......
Markdown is supported
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