Fix: Reset zoom when going out of spectate mode (in zcatch for example)

This commit is contained in:
def 2014-09-07 01:41:02 +02:00
parent 2cfb494c84
commit 93b57433b4

View file

@ -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)