disable free view when chatting as spectator. Closes #303

This commit is contained in:
oy 2010-11-21 18:05:26 +01:00
parent 456fc7e9b6
commit 8e3cba8dbf

View file

@ -197,7 +197,7 @@ void CControls::OnRender()
bool CControls::OnMouseMove(float x, float y)
{
if(m_pClient->m_Snap.m_pGameobj && m_pClient->m_Snap.m_pGameobj->m_Paused)
if((m_pClient->m_Snap.m_pGameobj && m_pClient->m_Snap.m_pGameobj->m_Paused) || (m_pClient->m_Snap.m_Spectate && m_pClient->m_pChat->IsActive()))
return false;
m_MousePos += vec2(x, y); // TODO: ugly