From 9e35752d1c97fbdb02bbc8eae020fd7064c42420 Mon Sep 17 00:00:00 2001 From: Learath Date: Sat, 5 Sep 2020 18:13:32 +0300 Subject: [PATCH] Don't deactivate menu when a popup is active --- src/game/client/components/menus.cpp | 3 ++- src/game/client/components/menus_ingame.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/menus.cpp b/src/game/client/components/menus.cpp index 136ceea37..8acb84bea 100644 --- a/src/game/client/components/menus.cpp +++ b/src/game/client/components/menus.cpp @@ -1348,6 +1348,7 @@ int CMenus::Render() { Client()->DummyDisconnect(0); m_Popup = POPUP_NONE; + SetActive(false); } } else if(m_Popup == POPUP_PASSWORD) @@ -2103,7 +2104,7 @@ void CMenus::OnRender() void CMenus::RenderBackground() { Graphics()->BlendNormal(); - + float sw = 300*Graphics()->ScreenAspect(); float sh = 300; Graphics()->MapScreen(0, 0, sw, sh); diff --git a/src/game/client/components/menus_ingame.cpp b/src/game/client/components/menus_ingame.cpp index 9c3b25523..052d23fbb 100644 --- a/src/game/client/components/menus_ingame.cpp +++ b/src/game/client/components/menus_ingame.cpp @@ -83,9 +83,9 @@ void CMenus::RenderGame(CUIRect MainView) else { Client()->DummyDisconnect(0); + SetActive(false); } } - SetActive(false); } ButtonBar.VSplitRight(5.0f, &ButtonBar, 0);