aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-08-06 19:10:09 -0400
committerlempamo <[email protected]>2017-08-06 19:10:09 -0400
commitcb0ebed2918341ce02978bc32ab6e284ae5f000a (patch)
treed022a85257544740fa5d946d4e92f3d268c9db87 /TimeHACK.Main/OS
parent39283c570ea4a4dd1f87f2de18075f4f705fc08d (diff)
downloadhistacom2-cb0ebed2918341ce02978bc32ab6e284ae5f000a.tar.gz
histacom2-cb0ebed2918341ce02978bc32ab6e284ae5f000a.tar.bz2
histacom2-cb0ebed2918341ce02978bc32ab6e284ae5f000a.zip
you can actually see the achievement box
Diffstat (limited to 'TimeHACK.Main/OS')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs
index aa1aeaa..9bade7e 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs
@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using TimeHACK.OS.Win95.Win95Apps.MineSweeper;
using TimeHACK.Engine;
+using System.Threading;
namespace TimeHACK.OS.Win95.Win95Apps
{
@@ -109,8 +110,8 @@ namespace TimeHACK.OS.Win95.Win95Apps
break;
case ("hard"):
if (SaveSystem.CurrentSave.mineSweepH > _game.Time) SaveSystem.CurrentSave.mineSweepH = _game.Time;
- SaveSystem.SaveAchievement(20);
- AchievementBox ab = new AchievementBox(20);
+ Thread t = new Thread(Achieve);
+ t.Start();
break;
}
@@ -118,8 +119,16 @@ namespace TimeHACK.OS.Win95.Win95Apps
}
}
+ private void Achieve()
+ {
+ SaveSystem.SaveAchievement(20);
+ new AchievementBox(20);
+ }
+
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{
+ Thread t = new Thread(Achieve);
+ t.Start();
this.ParentForm.Close();
}
}