mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Actually pause singleplayer game in pause menu and use lower maximum FPS in it
This commit is contained in:
parent
6833e04bc5
commit
92aa38bdfc
7 changed files with 41 additions and 17 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue