aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs
diff options
context:
space:
mode:
authorjtsshieh <[email protected]>2017-07-28 08:59:39 -0400
committerjtsshieh <[email protected]>2017-07-28 08:59:39 -0400
commit6cc9182b5c304485260ee2b68720c437598d1ac3 (patch)
tree4c4f1074937823965064e121bbcc66353d77a2ae /TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs
parentcc5a8d36ceac1567eebe946c3c6cbd0813a854c1 (diff)
downloadhistacom2-6cc9182b5c304485260ee2b68720c437598d1ac3.tar.gz
histacom2-6cc9182b5c304485260ee2b68720c437598d1ac3.tar.bz2
histacom2-6cc9182b5c304485260ee2b68720c437598d1ac3.zip
Finished Minesweeper levels
Check out my previous pul request for more things to do :-)
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs
index e6f31dd..8adee8e 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs
@@ -18,7 +18,7 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
private Square[,] _squares;
private Timer _timer;
private int _width;
-
+ public bool ftime = true;
public int Time;
public Game(Panel panel, int width, int height, int mines)
@@ -31,6 +31,11 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
private void Dismantle(object sender, EventArgs e)
{
+ if(ftime == true)
+ {
+ ftime = false;
+ OnTick();
+ }
Square s = (Square)sender;
if (s.Dismantled)
{
@@ -146,7 +151,6 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper
Time = 0;
_dismantledMines = 0;
_incorrectdismantledMines = 0;
- OnTick();
Panel.Enabled = true;
Panel.Controls.Clear();