summary refs log tree commit diff stats
path: root/src/menu_system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/menu_system.cpp')
-rw-r--r--src/menu_system.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/menu_system.cpp b/src/menu_system.cpp index 6b03fca..7631e4d 100644 --- a/src/menu_system.cpp +++ b/src/menu_system.cpp
@@ -10,6 +10,7 @@ void MenuSystem::tick(double dt) {
10 openState_ = OpenState::Closed; 10 openState_ = OpenState::Closed;
11 11
12 game_.unpauseGameplay(); 12 game_.unpauseGameplay();
13 game_.getMixer().unpauseSounds();
13 } else if (pauseAnimation_.getProgress() == 1.0) { 14 } else if (pauseAnimation_.getProgress() == 1.0) {
14 openState_ = OpenState::Open; 15 openState_ = OpenState::Open;
15 } 16 }
@@ -64,6 +65,7 @@ void MenuSystem::openPauseMenu() {
64 65
65 cursor_ = 0; 66 cursor_ = 0;
66 67
68 game_.getMixer().pauseSounds();
67 game_.getMixer().playSound("../res/sfx/menu_open.wav"); 69 game_.getMixer().playSound("../res/sfx/menu_open.wav");
68} 70}
69 71