From 300ca905fcfe15d8c5152aa2148b00e49ce75936 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 25 Nov 2017 13:32:43 +0200 Subject: [PATCH] [Client] Don't pause game when minimizing window, despite MyGUI issues --- apps/openmw/engine.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index 5072cacda..1b4af0592 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -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. // 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) - 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 if (mUseSound)