Don't deactivate menu when a popup is active

This commit is contained in:
Learath 2020-09-05 18:13:32 +03:00
parent b95ad532ee
commit 9e35752d1c
2 changed files with 3 additions and 2 deletions

View file

@ -1348,6 +1348,7 @@ int CMenus::Render()
{ {
Client()->DummyDisconnect(0); Client()->DummyDisconnect(0);
m_Popup = POPUP_NONE; m_Popup = POPUP_NONE;
SetActive(false);
} }
} }
else if(m_Popup == POPUP_PASSWORD) else if(m_Popup == POPUP_PASSWORD)
@ -2103,7 +2104,7 @@ void CMenus::OnRender()
void CMenus::RenderBackground() void CMenus::RenderBackground()
{ {
Graphics()->BlendNormal(); Graphics()->BlendNormal();
float sw = 300*Graphics()->ScreenAspect(); float sw = 300*Graphics()->ScreenAspect();
float sh = 300; float sh = 300;
Graphics()->MapScreen(0, 0, sw, sh); Graphics()->MapScreen(0, 0, sw, sh);

View file

@ -83,9 +83,9 @@ void CMenus::RenderGame(CUIRect MainView)
else else
{ {
Client()->DummyDisconnect(0); Client()->DummyDisconnect(0);
SetActive(false);
} }
} }
SetActive(false);
} }
ButtonBar.VSplitRight(5.0f, &ButtonBar, 0); ButtonBar.VSplitRight(5.0f, &ButtonBar, 0);