mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Reset zoom when going out of spectate mode (in zcatch for example)
This commit is contained in:
parent
2cfb494c84
commit
93b57433b4
|
@ -23,8 +23,10 @@ CCamera::CCamera()
|
|||
|
||||
void CCamera::OnRender()
|
||||
{
|
||||
//vec2 center;
|
||||
//m_Zoom = 1.0f;
|
||||
CServerInfo Info;
|
||||
Client()->GetServerInfo(&Info);
|
||||
if(!(m_pClient->m_Snap.m_SpecInfo.m_Active || (str_find_nocase(Info.m_aGameType, "race") || str_find_nocase(Info.m_aGameType, "fastcap")) || Client()->State() == IClient::STATE_DEMOPLAYBACK))
|
||||
m_Zoom = 1.0f;
|
||||
|
||||
// update camera center
|
||||
if(m_pClient->m_Snap.m_SpecInfo.m_Active && !m_pClient->m_Snap.m_SpecInfo.m_UsePosition)
|
||||
|
|
Loading…
Reference in a new issue