diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2017-10-20 08:00:57 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2017-10-20 08:00:57 -0400 |
commit | 563d978b4ba721370441eaaca3f8471ec383deff (patch) | |
tree | 268b04a1fdfec2ce92512722ef2d0a8b74e3659a /src/ui_menu.cpp | |
parent | d79f4a7f4b5aff5931ef86edd2537ef5e3620fd4 (diff) |
arrow rotation and actual pausing
Diffstat (limited to 'src/ui_menu.cpp')
-rw-r--r-- | src/ui_menu.cpp | 4 |
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) { |