aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/AchievementBox.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Histacom2/AchievementBox.cs')
-rw-r--r--Histacom2/AchievementBox.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Histacom2/AchievementBox.cs b/Histacom2/AchievementBox.cs
index e6d714a..a65ef23 100644
--- a/Histacom2/AchievementBox.cs
+++ b/Histacom2/AchievementBox.cs
@@ -27,6 +27,10 @@ namespace Histacom2
BackgroundImage = Properties.Resources.EndingPiracy;
stayOnScreen = true;
break;
+ case 1:
+ BackgroundImage = Properties.Resources.EndingDestruction;
+ stayOnScreen = true;
+ break;
case 20:
BackgroundImage = Properties.Resources.AchievementMines;
button1.Hide();
@@ -55,7 +59,8 @@ namespace Histacom2
Program.title.Show();
SaveSystem.CurrentSave = null;
SaveSystem.currentTheme = null;
- foreach (Form f in Application.OpenForms) if (!(f is TitleScreen) && !(f is AchievementBox)) f.Close();
+ Application.OpenForms.Cast<Form>().Where(x => !(x is TitleScreen | x is AchievementBox)).ToList().ForEach(x => x.Close());
+ //foreach (Form f in Application.OpenForms) if (!(f is TitleScreen) && !(f is AchievementBox)) f.Close();
this.Close();
}
}