mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix disabling spec window
This commit is contained in:
parent
a4a48255bc
commit
d1fddc11ea
|
@ -17,10 +17,11 @@
|
|||
void CSpectator::ConKeySpectator(IConsole::IResult *pResult, void *pUserData)
|
||||
{
|
||||
CSpectator *pSelf = (CSpectator *)pUserData;
|
||||
|
||||
if(pSelf->m_pClient->m_Snap.m_SpecInfo.m_Active || pSelf->Client()->State() == IClient::STATE_DEMOPLAYBACK)
|
||||
{
|
||||
pSelf->m_Active = pResult->GetInteger(0) != 0;
|
||||
}
|
||||
else
|
||||
pSelf->m_Active = false;
|
||||
}
|
||||
|
||||
void CSpectator::ConSpectate(IConsole::IResult *pResult, void *pUserData)
|
||||
|
|
Loading…
Reference in a new issue