aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui_menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui_menu.cpp')
-rw-r--r--src/ui_menu.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui_menu.cpp b/src/ui_menu.cpp
index 3afe0dc..052030a 100644
--- a/src/ui_menu.cpp
+++ b/src/ui_menu.cpp
@@ -3,6 +3,7 @@
#include <common.hpp>
#include <engine.hpp>
#include <fileio.hpp>
+#include <gametime.hpp>
#include <render.hpp>
#include <texture.hpp>
#include <font.hpp>
@@ -56,6 +57,7 @@ void Menu::gotoParent(void)
if (parent == nullptr) {
game::config::update();
FontSystem::setFontSize(FontSystem::SizeSmall);
+ game::time::togglePause(false);
}
currentMenu = parent;
@@ -241,6 +243,8 @@ namespace ui {
void toggle(void) {
currentMenu = &pauseMenu;
+ if (currentMenu != nullptr)
+ game::time::togglePause(true);
}
void draw(void) {