A little bug fix

This commit is contained in:
Masahiko AMANO 2022-03-03 13:12:11 +03:00
parent 5f408f5b11
commit d74b7a9413

View File

@ -160,7 +160,11 @@
cells[i].SetWrong();
}
}
public void Mark(int y, int x) { cells[y * width + x].Mark(); }
public void Mark(int y, int x)
{
if (!opened.Contains(cells[y * width + x]))
cells[y * width + x].Mark();
}
public void Unmark(int y, int x) { cells[y * width + x].Unmark(); }
public bool Check()
{