mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix incorrect menu behavior when quitting/restarting
Only consider `STATE_ONLINE` and `STATE_DEMOPLAYBACK` as ingame. Closes #7178.
This commit is contained in:
parent
7312721743
commit
68e481945b
|
@ -323,7 +323,7 @@ bool CMenuBackground::Render()
|
|||
if(!m_Loaded)
|
||||
return false;
|
||||
|
||||
if(Client()->State() >= IClient::STATE_ONLINE)
|
||||
if(Client()->State() == IClient::STATE_ONLINE || Client()->State() == IClient::STATE_DEMOPLAYBACK)
|
||||
return false;
|
||||
|
||||
m_Camera.m_Zoom = 0.7f;
|
||||
|
|
|
@ -982,7 +982,7 @@ int CMenus::Render()
|
|||
s_Frame++;
|
||||
}
|
||||
|
||||
if(Client()->State() >= IClient::STATE_ONLINE)
|
||||
if(Client()->State() == IClient::STATE_ONLINE || Client()->State() == IClient::STATE_DEMOPLAYBACK)
|
||||
{
|
||||
ms_ColorTabbarInactive = ms_ColorTabbarInactiveIngame;
|
||||
ms_ColorTabbarActive = ms_ColorTabbarActiveIngame;
|
||||
|
|
|
@ -389,7 +389,7 @@ void CMenus::RefreshSkins()
|
|||
RenderLoading(Localize("Loading skin files"), "", 0, false);
|
||||
}
|
||||
});
|
||||
if(Client()->State() >= IClient::STATE_ONLINE)
|
||||
if(Client()->State() == IClient::STATE_ONLINE || Client()->State() == IClient::STATE_DEMOPLAYBACK)
|
||||
{
|
||||
m_pClient->RefindSkins();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue