summaryrefslogtreecommitdiff
path: root/Penguloon/Levels/LevelBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Levels/LevelBase.cs')
-rw-r--r--Penguloon/Levels/LevelBase.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Penguloon/Levels/LevelBase.cs b/Penguloon/Levels/LevelBase.cs
index 7d67d70..a9340b2 100644
--- a/Penguloon/Levels/LevelBase.cs
+++ b/Penguloon/Levels/LevelBase.cs
@@ -85,6 +85,7 @@ namespace Penguloon.Levels
public void Restart()
{
+ NewPR = false;
CreateMap();
Map.WaveManager.CurrentWave = 1;
@@ -311,8 +312,11 @@ namespace Penguloon.Levels
}
- public void FinishGame()
+ public void FinishGame(bool exit = false)
{
+ ParentScene.OptionsMenu.State = IngameOptionsState.Hide;
+
+ if (!exit)
SoundManager.PlayGameOverSound();
Finished = true;