mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-27 16:39:41 +00:00
[Client] Don't pause game when minimizing window, despite MyGUI issues
This commit is contained in:
parent
6668b9ab42
commit
300ca905fc
1 changed files with 11 additions and 2 deletions
|
@ -120,8 +120,17 @@ void OMW::Engine::frame(float frametime)
|
||||||
// When the window is minimized, pause the game. Currently this *has* to be here to work around a MyGUI bug.
|
// When the window is minimized, pause the game. Currently this *has* to be here to work around a MyGUI bug.
|
||||||
// If we are not currently rendering, then RenderItems will not be reused resulting in a memory leak upon changing widget textures (fixed in MyGUI 3.3.2),
|
// If we are not currently rendering, then RenderItems will not be reused resulting in a memory leak upon changing widget textures (fixed in MyGUI 3.3.2),
|
||||||
// and destroyed widgets will not be deleted (not fixed yet, https://github.com/MyGUI/mygui/issues/21)
|
// and destroyed widgets will not be deleted (not fixed yet, https://github.com/MyGUI/mygui/issues/21)
|
||||||
if (!mEnvironment.getInputManager()->isWindowVisible())
|
|
||||||
return;
|
/*
|
||||||
|
Start of tes3mp change (major)
|
||||||
|
|
||||||
|
The game cannot be paused in multiplayer, so prevent that from happening even here
|
||||||
|
*/
|
||||||
|
//if (!mEnvironment.getInputManager()->isWindowVisible())
|
||||||
|
// return;
|
||||||
|
/*
|
||||||
|
End of tes3mp change (major)
|
||||||
|
*/
|
||||||
|
|
||||||
// sound
|
// sound
|
||||||
if (mUseSound)
|
if (mUseSound)
|
||||||
|
|
Loading…
Reference in a new issue