aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/Story
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Story')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
index 293d4bb..86e6334 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
@@ -23,18 +23,17 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
// This is the very first story script!
public static void StartObjective()
{
- System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer();
- tmr.Interval = 1;
- tmr.Tick += new EventHandler(CheckIfSoundFinished);
+ if (!ended) {
+ System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer();
+ tmr.Interval = 1;
+ tmr.Tick += new EventHandler(CheckIfSoundFinished);
- if (devMode == true)
- {
- ContinueObjective();
- }
- else
- {
- soundThread.Start();
- tmr.Start();
+ if (devMode == true) ContinueObjective();
+ else
+ {
+ soundThread.Start();
+ tmr.Start();
+ }
}
}
@@ -71,6 +70,7 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
await Task.Delay(36000);
app.Close();
+ ended = true;
}
public static void CheckIfSoundFinished(Object sender, EventArgs e)