A little bug fix
This commit is contained in:
parent
5f408f5b11
commit
d74b7a9413
6
Field.cs
6
Field.cs
@ -160,7 +160,11 @@
|
|||||||
cells[i].SetWrong();
|
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 void Unmark(int y, int x) { cells[y * width + x].Unmark(); }
|
||||||
public bool Check()
|
public bool Check()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user