mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Actually pause singleplayer game in pause menu and use lower maximum FPS in it
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user