diff options
author | Perttu Ahola <celeron55@gmail.com> | 2014-01-06 17:37:23 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2014-01-06 17:39:44 +0200 |
commit | 92aa38bdfc36fd7599a8e85722825381c89f0f9c (patch) | |
tree | 17a520f832c692afdf04e68acc3b03a0f62d9712 /src/mainmenumanager.h | |
parent | 6833e04bc55156025267c39a58a29007318129fa (diff) | |
download | minetest-92aa38bdfc36fd7599a8e85722825381c89f0f9c.tar.gz minetest-92aa38bdfc36fd7599a8e85722825381c89f0f9c.tar.bz2 minetest-92aa38bdfc36fd7599a8e85722825381c89f0f9c.zip |
Actually pause singleplayer game in pause menu and use lower maximum FPS in it
Diffstat (limited to 'src/mainmenumanager.h')
-rw-r--r-- | src/mainmenumanager.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainmenumanager.h b/src/mainmenumanager.h index d151cf48d..ecfb89fd3 100644 --- a/src/mainmenumanager.h +++ b/src/mainmenumanager.h @@ -91,6 +91,17 @@ public: return m_stack.size(); } + bool pausesGame() + { + for(std::list<GUIModalMenu*>::iterator + i = m_stack.begin(); i != m_stack.end(); ++i) + { + if((*i)->pausesGame()) + return true; + } + return false; + } + std::list<GUIModalMenu*> m_stack; }; |