mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Don't deactivate menu when a popup is active
This commit is contained in:
parent
b95ad532ee
commit
9e35752d1c
|
@ -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);
|
||||
|
|
|
@ -83,9 +83,9 @@ void CMenus::RenderGame(CUIRect MainView)
|
|||
else
|
||||
{
|
||||
Client()->DummyDisconnect(0);
|
||||
SetActive(false);
|
||||
}
|
||||
}
|
||||
SetActive(false);
|
||||
}
|
||||
|
||||
ButtonBar.VSplitRight(5.0f, &ButtonBar, 0);
|
||||
|
|
Loading…
Reference in a new issue